This commit is contained in:
mamoss 2025-08-22 17:53:51 +07:00
parent 62a522d7e4
commit 70ccf4a6c2

View file

@ -1431,14 +1431,14 @@ export class PositionController extends Controller {
);
if (posMaster.orgRevision?.orgRevisionIsCurrent == true) {
const _position = posMaster.positions.find((p) => p.positionIsSelected == true);
const _position = requestBody.positions.find((p) => p.positionIsSelected == true);
if (_position) {
const current_holderId: any = posMaster.current_holderId;
const _profile = await this.profileRepository.findOne({
where: { id: current_holderId },
});
if (_profile) {
_profile.position = _position.positionName;
_profile.position = _position.posDictName ?? _null;
_profile.posTypeId = _position.posTypeId;
_profile.posLevelId = _position.posLevelId;
await this.profileRepository.save(_profile);