Clean step and edge errors (#14261)
- add filters for both resolvers - map to gql errors Should fix https://github.com/twentyhq/core-team-issues/issues/996
This commit is contained in:
-1
@@ -3,6 +3,5 @@ import { CustomException } from 'src/utils/custom-exception';
|
||||
export class WorkflowVersionEdgeException extends CustomException<WorkflowVersionEdgeExceptionCode> {}
|
||||
|
||||
export enum WorkflowVersionEdgeExceptionCode {
|
||||
UNKNOWN = 'UNKNOWN',
|
||||
NOT_FOUND = 'NOT_FOUND',
|
||||
}
|
||||
|
||||
+2
-4
@@ -3,9 +3,7 @@ import { CustomException } from 'src/utils/custom-exception';
|
||||
export class WorkflowVersionStepException extends CustomException<WorkflowVersionStepExceptionCode> {}
|
||||
|
||||
export enum WorkflowVersionStepExceptionCode {
|
||||
UNKNOWN = 'UNKNOWN',
|
||||
INVALID_REQUEST = 'INVALID_REQUEST',
|
||||
NOT_FOUND = 'NOT_FOUND',
|
||||
UNDEFINED = 'UNDEFINED',
|
||||
FAILURE = 'FAILURE',
|
||||
INVALID = 'INVALID',
|
||||
CODE_STEP_FAILURE = 'CODE_STEP_FAILURE',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user