เพิ่มแสดงเหตุผลการพ้นจากราชการในทะเบียนประวัติ #1240

This commit is contained in:
Bright 2025-01-27 17:50:21 +07:00
parent 03a7b45aa3
commit b2c8bdecf3
4 changed files with 90 additions and 10 deletions

View file

@ -8263,6 +8263,7 @@ export class ProfileController extends Controller {
if (requestBody.isLeave == true) {
await removeProfileInOrganize(profile.id, "OFFICER");
}
profile.leaveType = "RETIRE_DECEASED";
await this.profileRepo.save(profile, { data: request });
setLogDataDiff(request, { before, after: profile });