fix isDelete = false check by isActive = true
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s

This commit is contained in:
Warunee Tamkoo 2026-04-02 17:00:36 +07:00
parent f7e8729e60
commit 58dd4cfd60

View file

@ -4293,6 +4293,7 @@ export class CommandController extends Controller {
profile.amount = item.amount ?? _null;
profile.amountSpecial = item.amountSpecial ?? _null;
profile.isActive = true;
profile.isDelete = false;
}
await this.profileRepository.save(profile);
@ -6646,6 +6647,7 @@ export class CommandController extends Controller {
profile.isLeave = item.bodyProfile.isLeave;
profile.isRetirement = false;
profile.isActive = true;
profile.isDelete = false;
profile.dateLeave = _null;
profile.dateRetire = _dateRetire;
profile.dateRetireLaw = _dateRetireLaw;