From 48011ac012610c051a291af700cf5270d6052f9e Mon Sep 17 00:00:00 2001 From: Gitesh Sarvaiya <99144191+giteshsarvaiya@users.noreply.github.com> Date: Fri, 2 May 2025 19:05:05 +0530 Subject: [PATCH] fix: do not report EmailNotVerifiedError to Sentry (#11753) (#11835) This PR prevents EmailNotVerifiedError from being reported to Sentry, as discussed in issue #11753. edit: close #11753 --- .../core-modules/graphql/utils/should-capture-exception.util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-server/src/engine/core-modules/graphql/utils/should-capture-exception.util.ts b/packages/twenty-server/src/engine/core-modules/graphql/utils/should-capture-exception.util.ts index 55badc6b0..817f6d76e 100644 --- a/packages/twenty-server/src/engine/core-modules/graphql/utils/should-capture-exception.util.ts +++ b/packages/twenty-server/src/engine/core-modules/graphql/utils/should-capture-exception.util.ts @@ -12,6 +12,7 @@ export const graphQLErrorCodesToFilterOut = [ ErrorCode.TIMEOUT, ErrorCode.CONFLICT, ErrorCode.BAD_USER_INPUT, + ErrorCode.EMAIL_NOT_VERIFIED, ]; export const shouldCaptureException = (exception: Error): boolean => {