(row: ConnectionRow)
| 1107 | * rewrites `provider_state` wholesale, which ends this derivation with no |
| 1108 | * write to race. */ |
| 1109 | const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => { |
| 1110 | const reauthState = oauthReauthRequiredFromProviderState(row.provider_state); |
| 1111 | if (reauthState !== null) return deadGrantVerdict(reauthState, row); |
| 1112 | return Option.getOrNull(decodeLastHealth(row.last_health)); |
| 1113 | }; |
| 1114 | |
| 1115 | const rowToConnection = (row: ConnectionRow): Connection => { |
| 1116 | const owner = row.owner as Owner; |
no test coverage detected