fix
This commit is contained in:
parent
c4e1ee5546
commit
cf00a32549
1 changed files with 3 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue