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
This commit is contained in:
Gitesh Sarvaiya
2025-05-02 19:05:05 +05:30
committed by GitHub
parent 9a504606b8
commit 48011ac012

View File

@ -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 => {