From 78007f1cba33ec4e824c9f23e3552a02cbe05ec0 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:32:52 +0700 Subject: [PATCH] fix: some data not return --- src/controllers/00-stats-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/00-stats-controller.ts b/src/controllers/00-stats-controller.ts index 9bb6955..64c72c7 100644 --- a/src/controllers/00-stats-controller.ts +++ b/src/controllers/00-stats-controller.ts @@ -59,7 +59,7 @@ export class StatsController extends Controller { code: true, quotationStatus: true, customerBranch: { - select: { customer: true }, + include: { customer: true }, }, finalPrice: true, createdAt: true, @@ -122,7 +122,7 @@ export class StatsController extends Controller { code: true, quotation: { select: { - customerBranch: { select: { customer: true } }, + customerBranch: { include: { customer: true } }, }, }, payment: { @@ -193,7 +193,7 @@ export class StatsController extends Controller { invoice: { select: { quotation: { - select: { customerBranch: { select: { customer: true } } }, + select: { customerBranch: { include: { customer: true } } }, }, }, },