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

Function tombstone

apps/cloud/src/auth/workos-mirror-store.ts:512–515  ·  view source on GitHub ↗
(deletedAt: Date | null)

Source from the content-addressed store, hash-verified

510// holds none (see `deleteMembership`). `workos_updated_at` is left as it is
511// — the tombstone is protected by the deleted id, not by its stamp.
512const tombstone = (deletedAt: Date | null) => ({
513 status: "inactive" as const,
514 deletedAt: deletedAt === null ? sql`now()` : instant(deletedAt),
515});
516
517// Which stored membership rows a payload for membership `id` stamped
518// `updatedAt` may overwrite. A row WorkOS still holds (`deleted_at` null) is

Callers 1

makeWritesFunction · 0.85

Calls 1

instantFunction · 0.85

Tested by

no test coverage detected