(reason: string)
| 2187 | set: syncedSet(row), |
| 2188 | }); |
| 2189 | const stampSyncedWithHealth = (reason: string) => |
| 2190 | core.updateMany("connection", { |
| 2191 | where: connectionWhere, |
| 2192 | set: { |
| 2193 | tools_synced_at: Date.now(), |
| 2194 | last_health: toolSyncHealth(reason), |
| 2195 | updated_at: new Date(), |
| 2196 | }, |
| 2197 | }); |
| 2198 | |
| 2199 | // Defense in depth (and cleanup for rows created before the create-time |
| 2200 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected