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

Function readMembers

apps/cloud/src/auth/mirror-feeders.node.test.ts:144–154  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

142
143/** Mirrored rows for one org, read through the live cloud `MemberDirectory`. */
144const readMembers = (organizationId: string) =>
145 Effect.runPromise(
146 Effect.flatMap(MemberDirectory.asEffect(), (directory) =>
147 directory.members(organizationId, {
148 statuses: ["active", "pending", "inactive"],
149 }),
150 ).pipe(
151 Effect.provide(cloudMemberDirectoryLayer.pipe(Layer.provide(DbService.Live))),
152 Effect.scoped,
153 ),
154 );
155
156/** Mirror an org row (named as of T1) and return the URL slug the store minted for it. */
157const seedOrganization = (id: string) =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected