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

Class UserStoreService

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

Source from the content-addressed store, hash-verified

24type UserStoreServiceType = ReturnType<typeof makeService>;
25
26export class UserStoreService extends Context.Service<UserStoreService, UserStoreServiceType>()(
27 "@executor-js/cloud/UserStoreService",
28) {
29 static Live = Layer.effect(this)(
30 Effect.map(DbService.asEffect(), ({ db }) => makeService(makeUserStore(db))),
31 );
32}
33
34/**
35 * 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