From b25558d71c0158383e0e77c32ea8088f0c1f23d1 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 17 Mar 2026 10:49:35 -0400 Subject: [PATCH] fix(bank_code): changed G56 for G140 --- scripts/migrate-shifts.ts | 2 +- src/time-and-attendance/domains/services/holiday.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/migrate-shifts.ts b/scripts/migrate-shifts.ts index fc24a82..30db327 100644 --- a/scripts/migrate-shifts.ts +++ b/scripts/migrate-shifts.ts @@ -205,7 +205,7 @@ // if (code === 'G700') { // code = 'G104'; // } else if (code === 'G140') { -// code = 'G56' +// code = 'G140' // } // const bank_code = await prisma.bankCodes.findFirst({ // where: { bank_code: code }, diff --git a/src/time-and-attendance/domains/services/holiday.service.ts b/src/time-and-attendance/domains/services/holiday.service.ts index 277e268..d800510 100644 --- a/src/time-and-attendance/domains/services/holiday.service.ts +++ b/src/time-and-attendance/domains/services/holiday.service.ts @@ -30,7 +30,7 @@ export class HolidayService { holiday_date: Date ): Promise> { try { - const valid_codes = ['G1', 'G43', 'G56', 'G104', 'G105', 'G305', 'G700', 'G720']; + const valid_codes = ['G1', 'G43', 'G140', 'G104', 'G105', 'G305', 'G700', 'G720']; const holiday_week_start = getWeekStart(holiday_date); const window_start = new Date(holiday_week_start.getTime() - 4 * MS_PER_WEEK); const window_end = new Date(holiday_week_start.getTime() - 1);