This commit is contained in:
AdisakKanthawilang 2025-03-25 13:11:26 +07:00
parent 24ce6c81c1
commit df2612adf3
2 changed files with 5 additions and 3 deletions

View file

@ -1107,13 +1107,16 @@ export class ProfileSalaryTempController extends Controller {
profileEmployee.statusCheckEdit = "PENDING";
await this.profileEmployeeRepo.save(profileEmployee);
}
const history = Object.assign(new PositionSalaryEditHistory());
const history : PositionSalaryEditHistory = Object.assign(new PositionSalaryEditHistory(), body);
if (profile) {
history.profileId = profileId;
} else if (profileEmployee) {
history.profileEmployeeId = profileId;
}
history.examinerName = req.user.name;
history.createdFullName = req.user.name;
history.lastUpdateFullName = req.user.name;
await this.positionSalaryEditHistoryRepo.save(history);
return new HttpSuccess();