MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / UserStoreService

Class UserStoreService

apps/cloud/src/auth/context.ts:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26type UserStoreServiceType = ReturnType<typeof makeService>;
27
28export class UserStoreService extends Context.Service<UserStoreService, UserStoreServiceType>()(
29 "@executor-js/cloud/UserStoreService",
30) {
31 static Live = Layer.effect(this)(
32 Effect.map(DbService.asEffect(), ({ db }) => makeService(makeUserStore(db))),
33 );
34}
35
36/**
37 * A FRESH `UserStoreService` layer (new layer value per call). `UserStoreService.Live`

Callers

nothing calls this directly

Calls 2

makeUserStoreFunction · 0.90
makeServiceFunction · 0.85

Tested by

no test coverage detected