fix: some data not return
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s

This commit is contained in:
Methapon2001 2025-03-06 17:32:52 +07:00
parent 329c69ec3d
commit 78007f1cba

View file

@ -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 } } },
},
},
},