feat: changed integration option to nativeEnum in zod and added audit log event

This commit is contained in:
=
2024-12-09 20:16:34 +05:30
parent 40d69d4620
commit 826916399b
3 changed files with 13 additions and 4 deletions
@@ -399,8 +399,7 @@ export const integrationAuthServiceFactory = ({
const { projectId } = integrationAuth;
const integration = newIntegration || integrationAuth.integration;
if (!Object.values(Integrations).includes(integration as Integrations))
throw new BadRequestError({ message: "Invalid integration" });
const updateDoc: TIntegrationAuthsInsert = {
projectId,
integration,