From 5837ca17248fcd91061bdb3490e476bc10dacfe6 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 3 Apr 2025 17:41:47 +0700 Subject: [PATCH] =?UTF-8?q?fix=20issue=20#1357=20=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=AD=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=B8=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/utils.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/interfaces/utils.ts b/src/interfaces/utils.ts index 8fc04353..3b066475 100644 --- a/src/interfaces/utils.ts +++ b/src/interfaces/utils.ts @@ -47,17 +47,17 @@ export async function calculateGovAge(profileId: string, type: string) { // type = OFFICER , EMPLOYEE const isEmployee = type === "EMPLOYEE"; - const records = await AppDataSource.getRepository(ProfileSalary).find({ - where: { - [isEmployee ? "profileEmployeeId" : "profileId"]: profileId, - }, - select: ["commandDateAffect", "dateGovernment", "isGovernment"], - order: { order: "ASC" }, - }); + // const records = await AppDataSource.getRepository(ProfileSalary).find({ + // where: { + // [isEmployee ? "profileEmployeeId" : "profileId"]: profileId, + // }, + // select: ["commandDateAffect", "dateGovernment", "isGovernment"], + // order: { order: "ASC" }, + // }); - if (!records || records.length === 0) { - return null; - } + // if (!records || records.length === 0) { + // return null; + // } let endDateFristRec: any = null; endDateFristRec = await AppDataSource.getRepository(ProfileSalary).findOne({