(conductorId: string)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected