MCPcopy Create free account
hub / github.com/bsoc-bitbyte/busify / removeContractor

Method removeContractor

backend/src/Bus/bus.controller.ts:103–111  ·  view source on GitHub ↗
(@Body() contractorId: string)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected