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