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

Function clearEventsRow

apps/cloud/src/auth/mirror-feeders.node.test.ts:1660–1665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1658
1659 /** Drop the instance-wide events row, so the run under test is the first ever. */
1660 const clearEventsRow = () =>
1661 Effect.runPromise(
1662 Effect.flatMap(DbService.asEffect(), ({ db }) =>
1663 Effect.promise(() => db.execute(sql`delete from workos_sync where id = 'events'`)),
1664 ).pipe(Effect.provide(DbService.Live), Effect.scoped),
1665 );
1666
1667 const backfilledAt = (org: string) =>
1668 withMirror((mirror) => mirror.organizationBackfilledAt(org));

Callers 1

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected