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

Method createContractor

backend/src/Bus/bus.service.ts:63–70  ·  view source on GitHub ↗
(contractor: any)

Source from the content-addressed store, hash-verified

61 return contractor;
62 }
63 async createContractor(contractor: any) {
64 return this.prismaService.contractor.create({
65 data: {
66 ...contractor,
67 id: uuidv4(),
68 },
69 });
70 }
71
72 async removeContractor(contractorId: string) {
73 return this.prismaService.contractor.delete({

Callers 1

createNewContractorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected