เพิ่ม id คำสั่งลงประวัติตำแหน่ง #665
This commit is contained in:
parent
0bca27a633
commit
c6e578ba4e
5 changed files with 48 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue