From dea973f8d95f7078da919b817cb97e4949070f92 Mon Sep 17 00:00:00 2001 From: Adisak Date: Wed, 22 Oct 2025 15:57:07 +0700 Subject: [PATCH] fix word --- src/controllers/ProfileEmployeeController.ts | 2 +- src/controllers/ProfileEmployeeTempController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 80859692..3ce5a3e0 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -2045,7 +2045,7 @@ export class ProfileEmployeeController extends Controller { await this.informationHistoryRepository.delete({ profileEmployeeId: id }); await this.profileRepo.remove(result); } catch { - throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถลบข้อมูลได้"); + throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถลบข้อมูลได้ เนื่องจากข้อมูลนี้ถูกใช้งานในระบบอื่น"); } return new HttpSuccess(); } diff --git a/src/controllers/ProfileEmployeeTempController.ts b/src/controllers/ProfileEmployeeTempController.ts index ec89872b..e843b218 100644 --- a/src/controllers/ProfileEmployeeTempController.ts +++ b/src/controllers/ProfileEmployeeTempController.ts @@ -1033,7 +1033,7 @@ export class ProfileEmployeeTempController extends Controller { await this.informationHistoryRepository.delete({ profileEmployeeId: id }); await this.profileRepo.remove(result); } catch { - throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถลบข้อมูลได้"); + throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถลบข้อมูลได้ เนื่องจากข้อมูลนี้ถูกใช้งานในระบบอื่น"); } return new HttpSuccess(); }