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