From ed7e013a7103e10b3703d315ed14f6c90064bf36 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Fri, 19 Dec 2025 16:46:19 -0500 Subject: [PATCH 1/2] clean(logs): removed debugging logs --- .../pay-period/services/pay-periods-query.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts index bbb326b..fa2b20c 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts @@ -255,7 +255,6 @@ export class PayPeriodsQueryService { if (employee.last_work_day !== null) { is_active = this.checkForInactiveDate(employee.last_work_day) } - console.log('employee name: ', employee.user.first_name, employee.user.first_name, 'last work day: ', employee.last_work_day); by_employee.set(employee.id, { email: employee.user.email, employee_name: employee.user.first_name + ' ' + employee.user.last_name, From ad49a2265ae82921b1aeadb952c7172fecf1a2f2 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Mon, 22 Dec 2025 11:12:14 -0500 Subject: [PATCH 2/2] feat(shifts): added a new route to enable shift creation/modification/deleting using the timesheets_approval page --- .../authentication/controllers/auth.controller.ts | 4 ++-- src/time-and-attendance/shifts/shift.controller.ts | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/identity-and-account/authentication/controllers/auth.controller.ts b/src/identity-and-account/authentication/controllers/auth.controller.ts index dc526e9..d0a2523 100644 --- a/src/identity-and-account/authentication/controllers/auth.controller.ts +++ b/src/identity-and-account/authentication/controllers/auth.controller.ts @@ -17,8 +17,8 @@ export class AuthController { @Get('/callback') @UseGuards(OIDCLoginGuard) loginCallback(@Req() req: Request, @Res() res: Response) { - res.redirect("http://10.100.251.2:9013/#/v1/login-success"); - // res.redirect(process.env.REDIRECT_URL_DEV!); + // res.redirect("http://10.100.251.2:9013/#/v1/login-success"); + res.redirect(process.env.REDIRECT_URL_DEV!); } @Get('/me') diff --git a/src/time-and-attendance/shifts/shift.controller.ts b/src/time-and-attendance/shifts/shift.controller.ts index ccd6799..f392ce1 100644 --- a/src/time-and-attendance/shifts/shift.controller.ts +++ b/src/time-and-attendance/shifts/shift.controller.ts @@ -21,7 +21,13 @@ export class ShiftController { @Post('create') @ModuleAccessAllowed(ModulesEnum.timesheets) createBatch(@Access('email') email: string, @Body() dtos: ShiftDto[]): Promise> { - return this.create_service.createOneOrManyShifts(email, dtos) + return this.create_service.createOneOrManyShifts(email, dtos); + } + + @Post('create/:email') + @ModuleAccessAllowed(ModulesEnum.timesheets_approval) + createBatchByTimesheetsApproval(@Param('email') email:string, @Body() dtos: ShiftDto[]): Promise> { + return this.create_service.createOneOrManyShifts(email,dtos); } @Patch('update')