console.log

This commit is contained in:
Nicolas Drolet 2025-12-22 14:10:26 -05:00
commit da74a93fa0
2 changed files with 8 additions and 2 deletions

View File

@ -256,7 +256,7 @@ export class PayPeriodsQueryService {
if (employee.last_work_day !== null) {
is_active = this.checkForInactiveDate(employee.last_work_day)
}
by_employee.set(employee.id, {
email: employee.user.email,
employee_name: employee.user.first_name + ' ' + employee.user.last_name,

View File

@ -21,7 +21,13 @@ export class ShiftController {
@Post('create')
@ModuleAccessAllowed(ModulesEnum.timesheets)
createBatch(@Access('email') email: string, @Body() dtos: ShiftDto[]): Promise<Result<boolean, string>> {
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<Result<boolean, string>> {
return this.create_service.createOneOrManyShifts(email,dtos);
}
@Patch('update')