Conditions | 1 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Controller, Inject, UseGuards, Get, Query } from '@nestjs/common'; |
||
22 | |||
23 | @Get() |
||
24 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
25 | @ApiOperation({ summary: 'Get yearly leaves summary' }) |
||
26 | public async index( |
||
27 | @LoggedUser() user: User |
||
28 | ): Promise<Pagination<LeavesSummaryView>> { |
||
29 | return await this.queryBus.execute( |
||
30 | new GetYearlyLeavesSummaryQuery(user.getId(), null) |
||
31 | ); |
||
34 |