Clean workflow query invalid input errors from sentry (#18804)
As title
This commit is contained in:
+4
@@ -20,6 +20,8 @@ import { PermissionsException } from 'src/engine/metadata-modules/permissions/pe
|
||||
import { permissionGraphqlApiExceptionHandler } from 'src/engine/metadata-modules/permissions/utils/permission-graphql-api-exception-handler.util';
|
||||
import { TwentyORMException } from 'src/engine/twenty-orm/exceptions/twenty-orm.exception';
|
||||
import { twentyORMGraphqlApiExceptionHandler } from 'src/engine/twenty-orm/utils/twenty-orm-graphql-api-exception-handler.util';
|
||||
import { WorkflowQueryValidationException } from 'src/modules/workflow/common/exceptions/workflow-query-validation.exception';
|
||||
import { workflowQueryValidationGraphqlApiExceptionHandler } from 'src/modules/workflow/common/utils/workflow-query-validation-graphql-api-exception-handler.util';
|
||||
|
||||
interface QueryFailedErrorWithCode extends QueryFailedError {
|
||||
code: string;
|
||||
@@ -49,6 +51,8 @@ export const workspaceQueryRunnerGraphqlApiExceptionHandler = (
|
||||
return throttlerToGraphqlApiExceptionHandler(error);
|
||||
case error instanceof GraphqlDirectExecutionException:
|
||||
return graphqlDirectExecutionToGraphqlApiExceptionHandler(error);
|
||||
case error instanceof WorkflowQueryValidationException:
|
||||
return workflowQueryValidationGraphqlApiExceptionHandler(error);
|
||||
default:
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user