From 00cd06a9973721c40118e00ef9505bcf5d1a4ff6 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 8 Aug 2024 17:27:33 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/EmployeePositionController.ts | 4 ++-- src/controllers/PositionController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index f7dea189..e7ff17f0 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -2245,8 +2245,8 @@ export class EmployeePositionController extends Controller { }); if (positionNew != null) { positionNew.positionIsSelected = true; - profile.posLevel = positionNew.posLevel; - profile.posType = positionNew.posType; + profile.posLevelId = positionNew.posLevelId; + profile.posTypeId = positionNew.posTypeId; profile.position = positionNew.positionName; profile.employeeOc = posMaster?.orgRoot?.orgRootName ?? null; profile.positionEmployeePositionId = positionNew.positionName; diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index af8eafd3..b46b60d4 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -3417,8 +3417,8 @@ export class PositionController extends Controller { }); if (positionNew != null) { positionNew.positionIsSelected = true; - profile.posLevel = positionNew.posLevel; - profile.posType = positionNew.posType; + profile.posLevelId = positionNew.posLevelId; + profile.posTypeId = positionNew.posTypeId; profile.position = positionNew.positionName; await this.profileRepository.save(profile); await this.positionRepository.save(positionNew);