This commit is contained in:
Adisak 2025-11-13 10:19:34 +07:00
parent c4e1ee5546
commit cf00a32549

View file

@ -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));