(
ref: ConnectionRef,
)
| 1709 | // ------------------------------------------------------------------ |
| 1710 | |
| 1711 | const findConnectionRow = ( |
| 1712 | ref: ConnectionRef, |
| 1713 | ): Effect.Effect<ConnectionRow | null, StorageFailure> => |
| 1714 | core.findFirst("connection", { |
| 1715 | where: (b: AnyCb) => |
| 1716 | b.and( |
| 1717 | byOwner(ref.owner)(b), |
| 1718 | b("integration", "=", String(ref.integration)), |
| 1719 | b("name", "=", String(ref.name)), |
| 1720 | ), |
| 1721 | }); |
| 1722 | |
| 1723 | // In-flight refresh gate — concurrent resolves of the same connection share |
| 1724 | // one refresh (mirrors v1's refresh deferred-map) so we never fire two |
no test coverage detected