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