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);