คนเข้าโครงสร้างแล้วปรับที่profile

This commit is contained in:
Kittapath 2024-07-19 11:52:43 +07:00
parent 85c6093970
commit d85fffe082
2 changed files with 22 additions and 14 deletions

View file

@ -3417,6 +3417,10 @@ export class PositionController extends Controller {
});
if (positionNew != null) {
positionNew.positionIsSelected = true;
profile.posLevel = positionNew.posLevel;
profile.posType = positionNew.posType;
profile.position = positionNew.positionName;
await this.profileRepository.save(profile);
await this.positionRepository.save(positionNew);
}
return new HttpSuccess();