console.log
This commit is contained in:
commit
da74a93fa0
|
|
@ -256,7 +256,7 @@ export class PayPeriodsQueryService {
|
||||||
if (employee.last_work_day !== null) {
|
if (employee.last_work_day !== null) {
|
||||||
is_active = this.checkForInactiveDate(employee.last_work_day)
|
is_active = this.checkForInactiveDate(employee.last_work_day)
|
||||||
}
|
}
|
||||||
|
|
||||||
by_employee.set(employee.id, {
|
by_employee.set(employee.id, {
|
||||||
email: employee.user.email,
|
email: employee.user.email,
|
||||||
employee_name: employee.user.first_name + ' ' + employee.user.last_name,
|
employee_name: employee.user.first_name + ' ' + employee.user.last_name,
|
||||||
|
|
|
||||||
|
|
@ -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