(@Body() contractorId: string)
| 101 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 102 | @Delete('contractor/:id') |
| 103 | async removeContractor(@Body() contractorId: string) { |
| 104 | try { |
| 105 | return this.busService.removeContractor(contractorId); |
| 106 | } catch (error) { |
| 107 | if (error instanceof HttpException) { |
| 108 | throw new HttpException(error.message, error.getStatus()); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 113 | @Post('conductor') |
| 114 | async createNewConductor(@Body() conductor: ConductorDto) { |
nothing calls this directly
no outgoing calls
no test coverage detected