diff --git a/backend/src/services/integration/integration-service.ts b/backend/src/services/integration/integration-service.ts index db4997322..4f4b26e24 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,