From 7c8b5d70ed2fd8659aefbcb15312a048153a969c Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 10 Oct 2024 13:48:20 +0700 Subject: [PATCH] no message --- src/controllers/CommandController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;