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

Class UserStoreService

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

Source from the content-addressed store, hash-verified

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