(row: ConnectionRow)
| 1055 | * rewrites `provider_state` wholesale, which ends this derivation with no |
| 1056 | * write to race. */ |
| 1057 | const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => { |
| 1058 | const reauthState = oauthReauthRequiredFromProviderState(row.provider_state); |
| 1059 | if (reauthState !== null) return deadGrantVerdict(reauthState, row); |
| 1060 | return Option.getOrNull(decodeLastHealth(row.last_health)); |
| 1061 | }; |
| 1062 | |
| 1063 | const rowToConnection = (row: ConnectionRow): Connection => { |
| 1064 | const owner = row.owner as Owner; |
no test coverage detected