(@Param('id') conductorId: string)
| 123 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 124 | @Delete('conductor/:id') |
| 125 | async removeConductor(@Param('id') conductorId: string) { |
| 126 | try { |
| 127 | return this.busService.removeConductor(conductorId); |
| 128 | } catch (error) { |
| 129 | if (error instanceof HttpException) { |
| 130 | throw new HttpException(error.message, error.getStatus()); |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 135 | @Post('schedule') |
| 136 | async createNewSchedule(@Body() schedule: ScheduleDto) { |
nothing calls this directly
no outgoing calls
no test coverage detected