(reason: string)
| 2549 | set: syncedSet(row), |
| 2550 | }); |
| 2551 | const stampSyncedWithHealth = (reason: string) => |
| 2552 | core.updateMany("connection", { |
| 2553 | where: connectionWhere, |
| 2554 | set: { |
| 2555 | tools_synced_at: Date.now(), |
| 2556 | last_health: toolSyncHealth(reason), |
| 2557 | updated_at: new Date(), |
| 2558 | }, |
| 2559 | }); |
| 2560 | |
| 2561 | // Defense in depth (and cleanup for rows created before the create-time |
| 2562 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected