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

Function noEarlierThan

apps/cloud/src/auth/workos-mirror-store.ts:506–506  ·  view source on GitHub ↗
(column: AnyPgColumn, at: Date)

Source from the content-addressed store, hash-verified

504// never backwards, so a row that somehow carries a newer WorkOS timestamp
505// keeps it and the upsert guard stays at least as strict.
506const noEarlierThan = (column: AnyPgColumn, at: Date) => sql`greatest(${column}, ${instant(at)})`;
507
508// A membership tombstone keeps the row, marks it `inactive`, and records the
509// deletion in `deleted_at`: the instant the caller holds, or `now()` when it

Callers 1

makeWritesFunction · 0.85

Calls 1

instantFunction · 0.85

Tested by

no test coverage detected