(organizationId: string)
| 142 | |
| 143 | /** Mirrored rows for one org, read through the live cloud `MemberDirectory`. */ |
| 144 | const 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. */ |
| 157 | const seedOrganization = (id: string) => |
no outgoing calls
no test coverage detected