diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index b0091494..86bf8bde 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -2293,22 +2293,22 @@ export class EmployeePositionController extends Controller { if (!dataMaster) { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งนี้"); } - if (dataMaster.current_holderId != null) { - const profile = await this.profileRepository.findOne({ - where: { - id: dataMaster.current_holderId, - }, - }); - const _null: any = null; - if (profile != null) { - profile.posLevelId = _null; - profile.posTypeId = _null; - profile.position = _null; - profile.employeeOc = _null; - profile.positionEmployeePositionId = _null; - await this.profileRepository.save(profile); - } - } + // if (dataMaster.current_holderId != null) { + // const profile = await this.profileRepository.findOne({ + // where: { + // id: dataMaster.current_holderId, + // }, + // }); + // const _null: any = null; + // if (profile != null) { + // profile.posLevelId = _null; + // profile.posTypeId = _null; + // profile.position = _null; + // profile.employeeOc = _null; + // profile.positionEmployeePositionId = _null; + // await this.profileRepository.save(profile); + // } + // } await this.employeePosMasterRepository.update(id, { isSit: false,