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({