fix
This commit is contained in:
parent
badecd1a3d
commit
484d2994ce
1 changed files with 3 additions and 1 deletions
|
|
@ -4341,9 +4341,11 @@ export class CommandController extends Controller {
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
lastUpdatedAt: new Date(),
|
lastUpdatedAt: new Date(),
|
||||||
};
|
};
|
||||||
if (item.isLeave != undefined && item.isLeave == true) {
|
if (orgRevisionRef && item.isLeave == true){
|
||||||
console.log("profile.current_holders.id>>>",orgRevisionRef.id);
|
console.log("profile.current_holders.id>>>",orgRevisionRef.id);
|
||||||
await CreatePosMasterHistoryOfficer(orgRevisionRef.id, req, "DELETE");
|
await CreatePosMasterHistoryOfficer(orgRevisionRef.id, req, "DELETE");
|
||||||
|
}
|
||||||
|
if (item.isLeave != undefined && item.isLeave == true) {
|
||||||
console.log("profile.id>>>",profile.id);
|
console.log("profile.id>>>",profile.id);
|
||||||
await removeProfileInOrganize(profile.id, "OFFICER");
|
await removeProfileInOrganize(profile.id, "OFFICER");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue