diff --git a/src/interfaces/utils.ts b/src/interfaces/utils.ts index 3d5fc5dd..1efcbdb8 100644 --- a/src/interfaces/utils.ts +++ b/src/interfaces/utils.ts @@ -116,7 +116,7 @@ export async function calculateGovAge(profileId: string, type: string) { years: totalYears1, months: totalMonths1, days: totalDays1, - } = calculateDuration(firstStartDate, firstEndDate, true); + } = calculateDuration(firstStartDate, firstEndDate); const records_middle = await AppDataSource.getRepository(ProfileSalary).find({ where: { @@ -145,7 +145,7 @@ export async function calculateGovAge(profileId: string, type: string) { if (current.isGovernment === true) { const startDate = new Date(current.dateGovernment); const endDate = next ? new Date(next.dateGovernment) : new Date(); - const { years, months, days } = calculateDuration(startDate, endDate, true); + const { years, months, days } = calculateDuration(startDate, endDate); totalYears2 += years; totalMonths2 += months;