| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | import { | 
            ||
| 18 | |||
| 19 | @Controller('shipping-costs') | 
            ||
| 20 | @ApiTags('Order') | 
            ||
| 21 | @ApiBearerAuth()  | 
            ||
| 22 | @UseGuards(AuthGuard('bearer'), RolesGuard) | 
            ||
| 23 | export class GetShippingCostAction { | 
            ||
| 24 | constructor(  | 
            ||
| 25 |     @Inject('IQueryBus') | 
            ||
| 26 | private readonly queryBus: IQueryBus  | 
            ||
| 27 |   ) {} | 
            ||
| 28 | |||
| 29 |   @Get(':id') | 
            ||
| 30 | @Roles(UserRole.PHOTOGRAPHER)  | 
            ||
| 31 |   @ApiOperation({ summary: 'Get shipping cost' }) | 
            ||
| 32 |   public async index(@Param() { id }: IdDTO): Promise<ShippingCostView> { | 
            ||
| 33 |     try { | 
            ||
| 34 | return await this.queryBus.execute(new GetShippingCostByIdQuery(id));  | 
            ||
| 35 |     } catch (e) { | 
            ||
| 36 | throw new NotFoundException(e.message);  | 
            ||
| 37 | }  | 
            ||
| 40 |