fix command

This commit is contained in:
AdisakKanthawilang 2025-02-10 11:53:39 +07:00
parent cf64091612
commit 8c72f7df87

View file

@ -4848,7 +4848,6 @@ export class CommandController extends Controller {
} }
profile.keycloak = checkUser[0].id; profile.keycloak = checkUser[0].id;
} }
positionNew.positionIsSelected = true; positionNew.positionIsSelected = true;
profile.posLevelId = positionNew.posLevelId; profile.posLevelId = positionNew.posLevelId;
profile.posTypeId = positionNew.posTypeId; profile.posTypeId = positionNew.posTypeId;
@ -4872,11 +4871,11 @@ export class CommandController extends Controller {
root: posMaster.orgRoot.orgRootName, root: posMaster.orgRoot.orgRootName,
rootId: posMaster.orgRootId, rootId: posMaster.orgRootId,
rootShortName: posMaster.orgRoot.orgRootShortName, rootShortName: posMaster.orgRoot.orgRootShortName,
rootDnaId: posMaster.orgRoot.ancestorDNA, rootDnaId: posMaster.orgRoot.ancestorDNA??_null,
child1DnaId: posMaster.orgChild1.ancestorDNA, child1DnaId: posMaster.orgChild1.ancestorDNA??_null,
child2DnaId: posMaster.orgChild2.ancestorDNA, child2DnaId: posMaster.orgChild2.ancestorDNA??_null,
child3DnaId: posMaster.orgChild3.ancestorDNA, child3DnaId: posMaster.orgChild3.ancestorDNA??_null,
child4DnaId: posMaster.orgChild4.ancestorDNA, child4DnaId: posMaster.orgChild4.ancestorDNA??_null,
}); });
await this.profileEmployeeRepository.save(profile); await this.profileEmployeeRepository.save(profile);
await this.employeePositionRepository.save(positionNew); await this.employeePositionRepository.save(positionNew);