From 5cb3f74e15daad4ecc8799ed69564bb007086b4c Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Tue, 8 Oct 2024 10:48:57 +0700 Subject: [PATCH] feat: also return full service back --- src/controllers/05-quotation-controller.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index eb299b9..9eb8c73 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -228,9 +228,22 @@ export class QuotationController extends Controller { }, productServiceList: { include: { - product: true, + service: { + include: { + work: { + include: { + productOnWork: { + include: { + product: true, + }, + }, + }, + }, + }, + }, work: true, - service: true, + product: true, + worker: true, }, },