Conditions | 1 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Controller, Inject, UseGuards, Get } from '@nestjs/common'; |
||
20 | |||
21 | @Get() |
||
22 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
23 | @ApiOperation({ summary: 'Get today on leave users' }) |
||
24 | public async index(): Promise<Array<OnLeaveUserView>> { |
||
25 | return await this.queryBus.execute( |
||
26 | new GetOnLeaveUsersQuery() |
||
27 | ); |
||
30 |