Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
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.tsindex 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`});