update profile.amount & fix lock
This commit is contained in:
parent
93b0dff070
commit
5ac8da1057
3 changed files with 13 additions and 3 deletions
|
|
@ -131,6 +131,11 @@ export class ProfileSalaryController extends Controller {
|
|||
history.profileSalaryId = data.id;
|
||||
await this.salaryHistoryRepo.save(history, { data: req });
|
||||
|
||||
let null_:any = null;
|
||||
profile.amount = body.amount ?? null_;
|
||||
profile.positionSalaryAmount = body.positionSalaryAmount ?? null_;
|
||||
profile.mouthSalaryAmount = body.mouthSalaryAmount ?? null_;
|
||||
await this.profileRepo.save(profile);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue