(reason: string)
| 2454 | set: syncedSet(row), |
| 2455 | }); |
| 2456 | const stampSyncedWithHealth = (reason: string) => |
| 2457 | core.updateMany("connection", { |
| 2458 | where: connectionWhere, |
| 2459 | set: { |
| 2460 | tools_synced_at: Date.now(), |
| 2461 | last_health: toolSyncHealth(reason), |
| 2462 | updated_at: new Date(), |
| 2463 | }, |
| 2464 | }); |
| 2465 | |
| 2466 | // Defense in depth (and cleanup for rows created before the create-time |
| 2467 | // guard, or emptied by an external edit): a credentialed non-OAuth |
no test coverage detected