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

Function markOrganizationDeleted

apps/cloud/src/auth/organization.ts:75–83  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

73// is not marked (nothing to revoke), and `false` says so.
74
75export 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.

Callers 2

handlers.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected