()
| 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)); |
no test coverage detected