From cf00a32549a58c5555d54977bf0d7ffcbb699a50 Mon Sep 17 00:00:00 2001 From: Adisak Date: Thu, 13 Nov 2025 10:19:34 +0700 Subject: [PATCH] fix --- src/controllers/CommandController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 2bf311ac..1212d497 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -4274,7 +4274,7 @@ export class CommandController extends Controller { }, } }, - relations: ["current_holders","roleKeycloaks"], + relations: ["current_holders","current_holders.orgRevision","roleKeycloaks"], }); if (!profile) { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทะเบียนประวัตินี้"); @@ -4318,7 +4318,9 @@ export class CommandController extends Controller { lastUpdatedAt: new Date(), }; if (item.isLeave != undefined && item.isLeave == true) { + console.log("profile.current_holders.id>>>",profile.current_holders.id); await CreatePosMasterHistoryOfficer(profile.current_holders.id, req, "DELETE"); + console.log("profile.id>>>",profile.id); await removeProfileInOrganize(profile.id, "OFFICER"); } const clearProfile = await checkCommandType(String(item.commandId));