Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: add fix for v2 to app connection

Sheen Capadngan1dcdb90c62c4
diff --git a/backend/src/services/app-connection/app-connection-service.ts b/backend/src/services/app-connection/app-connection-service.ts
index eb181144ff..f5654d2fb9 100644
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@ -386,7 +386,8 @@ export const appConnectionServiceFactory = ({
if (gatewayId) {
const [gateway] = await gatewayDAL.find({ id: gatewayId, orgId: actor.orgId });
- if (!gateway) {
+ const [gatewayV2] = await gatewayV2DAL.find({ id: gatewayId, orgId: actor.orgId });
+ if (!gateway && !gatewayV2) {
throw new NotFoundError({
message: `Gateway with ID ${gatewayId} not found for org`
});