(
ref: ConnectionRef,
)
| 2215 | // ------------------------------------------------------------------ |
| 2216 | |
| 2217 | const findConnectionRow = ( |
| 2218 | ref: ConnectionRef, |
| 2219 | ): Effect.Effect<ConnectionRow | null, StorageFailure> => |
| 2220 | core.findFirst("connection", { |
| 2221 | where: (b: AnyCb) => |
| 2222 | b.and( |
| 2223 | byOwner(ref.owner)(b), |
| 2224 | b("integration", "=", String(ref.integration)), |
| 2225 | b("name", "=", String(ref.name)), |
| 2226 | ), |
| 2227 | }); |
| 2228 | |
| 2229 | // Key for the shared in-flight refresh gate (`refreshInFlight`, bound at |
| 2230 | // the top of `createExecutor`). The tenant leads because the gate spans |
no test coverage detected