From 4da17192f30585d5584c629fdca236ad8df96379 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 11 Mar 2024 11:42:04 +0700 Subject: [PATCH] fix word --- src/controllers/OrgChild1Controller.ts | 2 +- src/controllers/OrgRootController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/OrgChild1Controller.ts b/src/controllers/OrgChild1Controller.ts index bda21a07..11af9a82 100644 --- a/src/controllers/OrgChild1Controller.ts +++ b/src/controllers/OrgChild1Controller.ts @@ -202,7 +202,7 @@ export class OrgChild1Controller { }, }); if (chkCode != null) { - throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว"); + throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว"); } child1.lastUpdateUserId = request.user.sub; child1.lastUpdateFullName = request.user.name; diff --git a/src/controllers/OrgRootController.ts b/src/controllers/OrgRootController.ts index 6cd821d1..ae46c876 100644 --- a/src/controllers/OrgRootController.ts +++ b/src/controllers/OrgRootController.ts @@ -190,7 +190,7 @@ export class OrgRootController extends Controller { where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode }, }); if (chkCode?.id != id && chkCode != null) { - throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว"); + throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว"); } const orgRoot = await this.orgRootRepository.findOne({ where: { id } });