(
ref: ConnectionRef,
)
| 1469 | // ------------------------------------------------------------------ |
| 1470 | |
| 1471 | const findConnectionRow = ( |
| 1472 | ref: ConnectionRef, |
| 1473 | ): Effect.Effect<ConnectionRow | null, StorageFailure> => |
| 1474 | core.findFirst("connection", { |
| 1475 | where: (b: AnyCb) => |
| 1476 | b.and( |
| 1477 | byOwner(ref.owner)(b), |
| 1478 | b("integration", "=", String(ref.integration)), |
| 1479 | b("name", "=", String(ref.name)), |
| 1480 | ), |
| 1481 | }); |
| 1482 | |
| 1483 | // In-flight refresh gate — concurrent resolves of the same connection share |
| 1484 | // one refresh (mirrors v1's refresh deferred-map) so we never fire two |
no test coverage detected