เพิ่ม id คำสั่งลงประวัติตำแหน่ง #665

This commit is contained in:
AdisakKanthawilang 2024-10-21 14:21:15 +07:00
parent 0bca27a633
commit c6e578ba4e
5 changed files with 48 additions and 14 deletions

View file

@ -121,7 +121,6 @@ export class ProfileSalaryController extends Controller {
Object.assign(data, { ...body, ...meta });
const history = new ProfileSalaryHistory();
Object.assign(history, { ...data, id: undefined });
await this.salaryRepo.save(data, { data: req });
setLogDataDiff(req, { before, after: data });
history.profileSalaryId = data.id;