fix(bank_code): changed G56 for G140

This commit is contained in:
Matthieu Haineault 2026-03-17 10:49:35 -04:00
parent 1dd57829ec
commit b25558d71c
2 changed files with 2 additions and 2 deletions

View File

@ -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 },

View File

@ -30,7 +30,7 @@ export class HolidayService {
holiday_date: Date
): Promise<Result<number, string>> {
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);