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

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