Merge branch 'develop' into adiDev
This commit is contained in:
commit
b383699c8c
1 changed files with 3 additions and 3 deletions
|
|
@ -1430,15 +1430,15 @@ export class PositionController extends Controller {
|
|||
}),
|
||||
);
|
||||
|
||||
if (posMaster.orgRevision?.orgRevisionIsDraft != false) {
|
||||
const _position = posMaster.positions.find((p) => p.positionIsSelected == true);
|
||||
if (posMaster.orgRevision?.orgRevisionIsCurrent == 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue