Skip to content

Commit

Permalink
Change instance service error code (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsitnikov authored Apr 5, 2024
1 parent 6178ca4 commit 074c050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/error-response-presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ export default (error: AppError | DBError) => {
},
};
}
case US_ERRORS.NOT_EXIST_SERVICE_INSTANCE: {
case US_ERRORS.NOT_EXIST_INSTANCE_SERVICE: {
return {
code: 404,
response: {
message: "The service instance doesn't exist",
message: "The instance service doesn't exist",
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/const/us-error-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const US_ERRORS = {
ENTRY_LOCK_FORCE_CONFLICT: 'ERR.US.ENTRY_LOCK_FORCE_CONFLICT',
NOT_EXIST_TENANT: 'NOT_EXIST_TENANT',
INCORRECT_ACTION: 'INCORRECT_ACTION',
NOT_EXIST_SERVICE_INSTANCE: 'NOT_EXIST_SERVICE_INSTANCE',
NOT_EXIST_INSTANCE_SERVICE: 'NOT_EXIST_INSTANCE_SERVICE',
TENANT_IS_BEING_DELETED: 'TENANT_IS_BEING_DELETED',
NOT_EXIST_TEMPLATES_CONFIG: 'NOT_EXIST_TEMPLATES_CONFIG',
NOT_EXIST_BILLING_INSTANCE_SERVICE_ID_PREFIX_IN_CONFIG:
Expand Down

0 comments on commit 074c050

Please sign in to comment.