Merge pull request #2526 from Infisical/daniel/integration-not-found-error

fix(api): integration not found error
This commit is contained in:
Daniel Hougaard
2024-10-03 18:35:35 +04:00
committed by GitHub

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,