From 074c050c5e3dcc78d0019578578b86d68b0c93d4 Mon Sep 17 00:00:00 2001 From: Maksim Sitnikov Date: Fri, 5 Apr 2024 18:51:51 +0300 Subject: [PATCH] Change instance service error code (#107) --- src/components/error-response-presenter.ts | 4 ++-- src/const/us-error-constants.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/error-response-presenter.ts b/src/components/error-response-presenter.ts index e7ceb4e2..b53fb547 100644 --- a/src/components/error-response-presenter.ts +++ b/src/components/error-response-presenter.ts @@ -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", }, }; } diff --git a/src/const/us-error-constants.ts b/src/const/us-error-constants.ts index 17d5799c..f76dd320 100644 --- a/src/const/us-error-constants.ts +++ b/src/const/us-error-constants.ts @@ -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: