console.log
This commit is contained in:
commit
da74a93fa0
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user