Conditions | 1 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Controller, Inject, UseGuards, Get } from '@nestjs/common'; |
||
19 | |||
20 | @Get() |
||
21 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
22 | @ApiOperation({ summary: 'Get count of pending leave requests' }) |
||
23 | public async index(): Promise<number> { |
||
24 | return await this.queryBus.execute(new GetPendingLeaveRequestsCountQuery()); |
||
25 | } |
||
27 |