diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 846b3e66..32ddde5b 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -2232,8 +2232,8 @@ export class CommandController extends Controller { Object.assign(profileSal, { ...item.bodySalarys, ...meta }); const salaryHistory = new ProfileSalaryHistory(); Object.assign(salaryHistory, { ...profileSal, id: undefined }); - (profileSal.order = dest_item == null ? 1 : dest_item.order + 1), - (profileSal.profileId = profile.id); + profileSal.order = dest_item == null ? 1 : dest_item.order + 1 + profileSal.profileId = profile.id; await this.salaryRepo.save(profileSal, { data: req }); setLogDataDiff(req, { before, after: profileSal }); salaryHistory.profileSalaryId = profileSal.id;