Add BAD_DATA to the saving request error code

This commit is contained in:
Hongbo Wu 2023-03-21 13:02:38 +08:00
parent b0db2555ed
commit f93148fcdd
3 changed files with 3 additions and 0 deletions

View file

@ -180,6 +180,7 @@ export type ArticleSavingRequestError = {
};
export enum ArticleSavingRequestErrorCode {
BadData = 'BAD_DATA',
NotFound = 'NOT_FOUND',
Unauthorized = 'UNAUTHORIZED'
}

View file

@ -145,6 +145,7 @@ type ArticleSavingRequestError {
}
enum ArticleSavingRequestErrorCode {
BAD_DATA
NOT_FOUND
UNAUTHORIZED
}

View file

@ -1084,6 +1084,7 @@ const schema = gql`
enum ArticleSavingRequestErrorCode {
UNAUTHORIZED
NOT_FOUND
BAD_DATA
}
type ArticleSavingRequestError {
errorCodes: [ArticleSavingRequestErrorCode!]!