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({