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

Method getConductorById

backend/src/Bus/bus.service.ts:38–48  ·  view source on GitHub ↗
(conductorId: string)

Source from the content-addressed store, hash-verified

36 return this.prismaService.conductor.findMany({});
37 }
38 async getConductorById(conductorId: string) {
39 const conductor = await this.prismaService.conductor.findFirst({
40 where: {
41 id: conductorId,
42 },
43 });
44 if (!conductor) {
45 throw new HttpException('Conductor not found', 404);
46 }
47 return conductor;
48 }
49 async getContractors() {
50 return this.prismaService.contractor.findMany({});
51 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected