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

Function readMembers

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected