From ee858094e0d77ad66e971b8eadcda0d49a1dd11c Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 14:58:22 +0700 Subject: [PATCH] feat: also return full address --- src/controllers/05-quotation-controller.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 9af1573..2b41111 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -224,7 +224,13 @@ export class QuotationController extends Controller { select: { worker: true }, }, registeredBranch: true, - customerBranch: true, + customerBranch: { + include: { + province: true, + district: true, + subDistrict: true, + }, + }, worker: { include: { employee: {