From aa67674fa775fee525b1ae205ef33a44f4a074b8 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 10 Jun 2024 18:18:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA=E0=B9=80?= =?UTF-8?q?=E0=B8=95=E0=B8=95=E0=B8=B1=E0=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileEmployeeController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 14467328..ec09edf0 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -667,7 +667,7 @@ export class ProfileEmployeeController extends Controller { .leftJoinAndSelect("current_holders.orgChild3", "orgChild3") .leftJoinAndSelect("current_holders.orgChild4", "orgChild4") .andWhere("profileEmployee.employeeClass = :employeeClass", { employeeClass: "TEMP" }) - .andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "REPORT" }) + .andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "PENDING" }) .getManyAndCount(); const data = await Promise.all( record.map((_data) => { @@ -1853,7 +1853,7 @@ export class ProfileEmployeeController extends Controller { profileEmp.posTypeNameTemp = body.posTypeName; profileEmp.posLevelIdTemp = String(body.posLevelId); profileEmp.posLevelNameTemp = body.posLevelName; - profileEmp.statusTemp = "REPORT"; + profileEmp.statusTemp = "PENDING"; this.profileRepo.merge(profileEmp, body); await this.profileRepo.save(profileEmp); return new HttpSuccess();