(reason: string)
| 2595 | set: syncedSet(row), |
| 2596 | }); |
| 2597 | const stampSyncedWithHealth = (reason: string) => |
| 2598 | core.updateMany("connection", { |
| 2599 | where: connectionWhere, |
| 2600 | set: { |
| 2601 | tools_synced_at: Date.now(), |
| 2602 | last_health: toolSyncHealth(reason), |
| 2603 | updated_at: new Date(), |
| 2604 | }, |
| 2605 | }); |
| 2606 | |
| 2607 | // Defense in depth (and cleanup for rows created before the create-time |
| 2608 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected