diff --git a/backend/src/bundles/templates/enums/template-error-message.enum.ts b/backend/src/bundles/templates/enums/template-error-message.enum.ts index 711ff1b7a..d39d4c351 100644 --- a/backend/src/bundles/templates/enums/template-error-message.enum.ts +++ b/backend/src/bundles/templates/enums/template-error-message.enum.ts @@ -1,5 +1,6 @@ const templateErrorMessage = { YOU_CAN_NOT_DELETE_THIS_TEMPLATE: 'You can not delete this template', + YOU_CAN_NOT_UPDATE_THIS_TEMPLATE: 'You can not update this template', TEMPLATE_DOES_NOT_EXIST: 'Template does not exist', } as const; diff --git a/backend/src/bundles/templates/templates.service.ts b/backend/src/bundles/templates/templates.service.ts index 8ae8f1abd..a63087dbc 100644 --- a/backend/src/bundles/templates/templates.service.ts +++ b/backend/src/bundles/templates/templates.service.ts @@ -77,7 +77,7 @@ class TemplateService implements Service { if (template?.userId !== userId) { throw new HttpError({ - message: templateErrorMessage.YOU_CAN_NOT_DELETE_THIS_TEMPLATE, + message: templateErrorMessage.YOU_CAN_NOT_UPDATE_THIS_TEMPLATE, status: HTTPCode.BAD_REQUEST, }); }