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
refactor: remove redundant duplicate name pre-check in createGateway
bernie-g7ff6495856f7
diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts b/backend/src/ee/services/gateway-v2/gateway-v2-service.tsindex 13e39af7cb..cf4063c3b3 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-service.ts@@ -1223,11 +1223,6 @@ export const gatewayV2ServiceFactory = ({OrgPermissionSubjects.Gateway);- const existingGateway = await gatewayV2DAL.find({ orgId, name });- if (existingGateway.length > 0) {- throw new BadRequestError({ message: `A gateway named "${name}" already exists` });- }-try {const gateway = await gatewayV2DAL.create({ orgId, name });return gateway;