From 46deae63bccc52f04d9073105e56f63c39617846 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 16 Sep 2025 14:47:35 -0400 Subject: [PATCH] fix(holiday): minor valid_codes fix --- src/modules/business-logics/services/holiday.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/business-logics/services/holiday.service.ts b/src/modules/business-logics/services/holiday.service.ts index 4fce9e0..c0c8393 100644 --- a/src/modules/business-logics/services/holiday.service.ts +++ b/src/modules/business-logics/services/holiday.service.ts @@ -32,7 +32,7 @@ export class HolidayService { //sets the start of the window to 28 days ( 4 completed weeks ) before the week with the holiday const window_start = new Date(window_end.getTime() - 28 * 24 * 60 * 60000 + 1 ) - const valid_codes = ['G1', 'G45', 'G56', 'G104', 'G105', 'G700']; + const valid_codes = ['G1', 'G43', 'G56', 'G104', 'G105', 'G700']; //fetches all shift of the employee in said window ( 4 previous completed weeks ) const shifts = await this.prisma.shifts.findMany({ where: { timesheet: { employee_id: employee_id } ,