Conditions | 2 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
27 | |||
28 | @Delete(':id') |
||
29 | @Roles(UserRole.PHOTOGRAPHER) |
||
30 | @ApiOperation({ summary: 'Remove school discount' }) |
||
31 | public async index(@Param() { id }: IdDTO) { |
||
32 | try { |
||
33 | await this.commandBus.execute(new RemoveDiscountCommand(id)); |
||
34 | } catch (e) { |
||
35 | throw new BadRequestException(e.message); |
||
36 | } |
||
39 |