test
This commit is contained in:
parent
62a522d7e4
commit
70ccf4a6c2
1 changed files with 2 additions and 2 deletions
|
|
@ -1431,14 +1431,14 @@ export class PositionController extends Controller {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (posMaster.orgRevision?.orgRevisionIsCurrent == true) {
|
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) {
|
if (_position) {
|
||||||
const current_holderId: any = posMaster.current_holderId;
|
const current_holderId: any = posMaster.current_holderId;
|
||||||
const _profile = await this.profileRepository.findOne({
|
const _profile = await this.profileRepository.findOne({
|
||||||
where: { id: current_holderId },
|
where: { id: current_holderId },
|
||||||
});
|
});
|
||||||
if (_profile) {
|
if (_profile) {
|
||||||
_profile.position = _position.positionName;
|
_profile.position = _position.posDictName ?? _null;
|
||||||
_profile.posTypeId = _position.posTypeId;
|
_profile.posTypeId = _position.posTypeId;
|
||||||
_profile.posLevelId = _position.posLevelId;
|
_profile.posLevelId = _position.posLevelId;
|
||||||
await this.profileRepository.save(_profile);
|
await this.profileRepository.save(_profile);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue