Update integration-service.ts

This commit is contained in:
Daniel Hougaard
2024-10-03 18:30:17 +04:00
parent 24b23d4f90
commit bdf1f7c601

View File

@@ -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,