(organizationId: string)
| 73 | // is not marked (nothing to revoke), and `false` says so. |
| 74 | |
| 75 | export const markOrganizationDeleted = (organizationId: string) => |
| 76 | Effect.gen(function* () { |
| 77 | const users = yield* UserStoreService; |
| 78 | const at = new Date(yield* Clock.currentTimeMillis); |
| 79 | const marked = yield* users.use("markOrganizationDeleted", (s) => |
| 80 | s.markOrganizationDeleted(organizationId, at), |
| 81 | ); |
| 82 | return marked !== null; |
| 83 | }); |
| 84 | |
| 85 | // --------------------------------------------------------------------------- |
| 86 | // Authorization — membership check against the local membership mirror. |
no outgoing calls
no test coverage detected