(reason: string)
| 2535 | set: syncedSet(row), |
| 2536 | }); |
| 2537 | const stampSyncedWithHealth = (reason: string) => |
| 2538 | core.updateMany("connection", { |
| 2539 | where: connectionWhere, |
| 2540 | set: { |
| 2541 | tools_synced_at: Date.now(), |
| 2542 | last_health: toolSyncHealth(reason), |
| 2543 | updated_at: new Date(), |
| 2544 | }, |
| 2545 | }); |
| 2546 | |
| 2547 | // Defense in depth (and cleanup for rows created before the create-time |
| 2548 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected