(row: ConnectionRow)
| 1116 | * rewrites `provider_state` wholesale, which ends this derivation with no |
| 1117 | * write to race. */ |
| 1118 | const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => { |
| 1119 | const reauthState = oauthReauthRequiredFromProviderState(row.provider_state); |
| 1120 | if (reauthState !== null) return deadGrantVerdict(reauthState, row); |
| 1121 | return Option.getOrNull(decodeLastHealth(row.last_health)); |
| 1122 | }; |
| 1123 | |
| 1124 | const rowToConnection = (row: ConnectionRow): Connection => { |
| 1125 | const owner = row.owner as Owner; |
no test coverage detected