(reason: string)
| 2096 | set: syncedSet(row), |
| 2097 | }); |
| 2098 | const stampSyncedWithHealth = (reason: string) => |
| 2099 | core.updateMany("connection", { |
| 2100 | where: connectionWhere, |
| 2101 | set: { |
| 2102 | tools_synced_at: Date.now(), |
| 2103 | last_health: toolSyncHealth(reason), |
| 2104 | updated_at: new Date(), |
| 2105 | }, |
| 2106 | }); |
| 2107 | |
| 2108 | // Defense in depth (and cleanup for rows created before the create-time |
| 2109 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected