From 70bcca5739ca2e3b9836d7757df4f4eb3af35430 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 19 Feb 2024 11:05:31 +0700 Subject: [PATCH] edit del message --- src/controllers/SalaryController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/SalaryController.ts b/src/controllers/SalaryController.ts index 2cbc612..d17673f 100644 --- a/src/controllers/SalaryController.ts +++ b/src/controllers/SalaryController.ts @@ -208,7 +208,8 @@ export class Salary extends Controller { if (chk_Salary.isActive) { throw new HttpError( HttpStatusCode.NOT_FOUND, - "ไม่สามารถลบไอดี: " + id + " ได้ เนื่องสถานะการใช้งานที่เป็น Default", + // "ไม่สามารถลบไอดี: " + id + " ได้ เนื่องสถานะการใช้งานที่เป็น Default", + "ไม่สามารถลบข้อมูลนี้ได้ เนื่องจากเปิดใช้งานอยู่", ); } const del_SalaryRank = await this.salaryRankRepository.find({