From 94ea64247f63fab55b1ed80c42d219bb4954422c Mon Sep 17 00:00:00 2001 From: Adisak Date: Fri, 24 Oct 2025 10:18:12 +0700 Subject: [PATCH] #1885 update --- .../EmployeeTempPositionController.ts | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/controllers/EmployeeTempPositionController.ts b/src/controllers/EmployeeTempPositionController.ts index c9397103..50c58a4b 100644 --- a/src/controllers/EmployeeTempPositionController.ts +++ b/src/controllers/EmployeeTempPositionController.ts @@ -2115,22 +2115,22 @@ export class EmployeeTempPositionController 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.employeeTempPosMasterRepository.update(id, { isSit: false,