fix and test

This commit is contained in:
Adisak 2025-11-12 15:21:59 +07:00
parent b468d7bfe9
commit f035713e34
2 changed files with 2 additions and 2 deletions

View file

@ -10790,7 +10790,7 @@ export class ProfileController extends Controller {
setLogDataDiff(request, { before, after: profile });
if (requestBody.isLeave == true) {
if(orgRevisionRef){
await CreatePosMasterHistoryOfficer(orgRevisionRef.id, request);
await CreatePosMasterHistoryOfficer(orgRevisionRef.id, request, "DELETE");
}
await removeProfileInOrganize(profile.id, "OFFICER");
}