Skip to content

The open alternative to Salesforce, designed for AI.

fix: do not report EmailNotVerifiedError to Sentry (#11753) (#11835)

Gitesh Sarvaiya48011ac01261
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 55badc6b07d..817f6d76ee9 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 => {