(reason: string)
| 2112 | set: syncedSet(row), |
| 2113 | }); |
| 2114 | const stampSyncedWithHealth = (reason: string) => |
| 2115 | core.updateMany("connection", { |
| 2116 | where: connectionWhere, |
| 2117 | set: { |
| 2118 | tools_synced_at: Date.now(), |
| 2119 | last_health: toolSyncHealth(reason), |
| 2120 | updated_at: new Date(), |
| 2121 | }, |
| 2122 | }); |
| 2123 | |
| 2124 | // Defense in depth (and cleanup for rows created before the create-time |
| 2125 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected