(
ref: ConnectionRef,
)
| 1723 | // ------------------------------------------------------------------ |
| 1724 | |
| 1725 | const findConnectionRow = ( |
| 1726 | ref: ConnectionRef, |
| 1727 | ): Effect.Effect<ConnectionRow | null, StorageFailure> => |
| 1728 | core.findFirst("connection", { |
| 1729 | where: (b: AnyCb) => |
| 1730 | b.and( |
| 1731 | byOwner(ref.owner)(b), |
| 1732 | b("integration", "=", String(ref.integration)), |
| 1733 | b("name", "=", String(ref.name)), |
| 1734 | ), |
| 1735 | }); |
| 1736 | |
| 1737 | // In-flight refresh gate — concurrent resolves of the same connection share |
| 1738 | // one refresh (mirrors v1's refresh deferred-map) so we never fire two |
no test coverage detected