(
ref: ConnectionRef,
)
| 1447 | // ------------------------------------------------------------------ |
| 1448 | |
| 1449 | const findConnectionRow = ( |
| 1450 | ref: ConnectionRef, |
| 1451 | ): Effect.Effect<ConnectionRow | null, StorageFailure> => |
| 1452 | core.findFirst("connection", { |
| 1453 | where: (b: AnyCb) => |
| 1454 | b.and( |
| 1455 | byOwner(ref.owner)(b), |
| 1456 | b("integration", "=", String(ref.integration)), |
| 1457 | b("name", "=", String(ref.name)), |
| 1458 | ), |
| 1459 | }); |
| 1460 | |
| 1461 | // In-flight refresh gate — concurrent resolves of the same connection share |
| 1462 | // one refresh (mirrors v1's refresh deferred-map) so we never fire two |
no test coverage detected