Skip to content

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

Update integration-service.ts

Daniel Hougaardbdf1f7c6012b
diff --git a/backend/src/services/integration/integration-service.ts b/backend/src/services/integration/integration-service.ts
index db49973222..4f4b26e247 100644
--- a/backend/src/services/integration/integration-service.ts
+++ b/backend/src/services/integration/integration-service.ts
@@ -189,6 +189,12 @@ export const integrationServiceFactory = ({
const getIntegration = async ({ id, actor, actorAuthMethod, actorId, actorOrgId }: TGetIntegrationDTO) => {
const integration = await integrationDAL.findById(id);
+ if (!integration) {
+ throw new NotFoundError({
+ message: "Integration not found"
+ });
+ }
+
const { permission } = await permissionService.getProjectPermission(
actor,
actorId,