diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 8d0e51a..fb5d20c 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -220,7 +220,12 @@ export class QuotationController extends Controller { async getQuotationById(@Path() quotationId: string) { const record = await prisma.quotation.findUnique({ include: { - worker: true, + _count: { + select: { worker: true }, + }, + worker: { + include: { employee: true }, + }, service: { include: { _count: { select: { work: true } },