From 082ce90dcd075fbd98d972cb97455441470ae2de Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 11 Mar 2024 11:31:38 +0700 Subject: [PATCH] =?UTF-8?q?fix=20word=20"=E0=B8=A3=E0=B8=AB=E0=B8=B1?= =?UTF-8?q?=E0=B8=AA=E0=B8=AA=E0=B9=88=E0=B8=A7=E0=B8=99=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=99=E0=B8=B5=E0=B9=89?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B8=AD=E0=B8=A2=E0=B8=B9=E0=B9=88=E0=B9=83?= =?UTF-8?q?=E0=B8=99=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B9=89=E0=B8=A7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/OrgChild1Controller.ts | 2 +- src/controllers/OrgRootController.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/OrgChild1Controller.ts b/src/controllers/OrgChild1Controller.ts index 11af9a82..bda21a07 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 8b11eec0..6cd821d1 100644 --- a/src/controllers/OrgRootController.ts +++ b/src/controllers/OrgRootController.ts @@ -108,7 +108,7 @@ export class OrgRootController extends Controller { where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode }, }); if (chkCode != null) { - throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว"); + throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว"); } const orgRevision = await this.orgRevisionRepository.findOne({ @@ -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 } });