| Conditions | 2 | 
| Total Lines | 9 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import { | ||
| 28 | |||
| 29 |   @Get(':id') | ||
| 30 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) | ||
| 31 |   @ApiOperation({summary: 'Get daily rate'}) | ||
| 32 |   public async index(@Param() dto: IdDTO): Promise<DailyRateView> { | ||
| 33 |     try { | ||
| 34 | return await this.queryBus.execute(new GetDailyRateByIdQuery(dto.id)); | ||
| 35 |     } catch (e) { | ||
| 36 | throw new BadRequestException(e.message); | ||
| 37 | } | ||
| 40 |