(row: ConnectionRow | null)
| 3554 | // Successful syncs also clear stale sync-failure health records, while |
| 3555 | // preserving genuine health-check outcomes. |
| 3556 | const stampSynced = (row: ConnectionRow | null) => |
| 3557 | core.updateMany("connection", { |
| 3558 | where: connectionWhere, |
| 3559 | set: syncedSet(row), |
| 3560 | }); |
| 3561 | // A failing sync must not bury a recorded dead grant's `expired` |
| 3562 | // verdict: this sync's own credential resolution is what discovers |
| 3563 | // invalid_grant (refresh → recorder), so by failure time the row |
no test coverage detected