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, code: true,
quotationStatus: true, quotationStatus: true,
customerBranch: { customerBranch: {
select: { customer: true }, include: { customer: true },
}, },
finalPrice: true, finalPrice: true,
createdAt: true, createdAt: true,
@ -122,7 +122,7 @@ export class StatsController extends Controller {
code: true, code: true,
quotation: { quotation: {
select: { select: {
customerBranch: { select: { customer: true } }, customerBranch: { include: { customer: true } },
}, },
}, },
payment: { payment: {
@ -193,7 +193,7 @@ export class StatsController extends Controller {
invoice: { invoice: {
select: { select: {
quotation: { quotation: {
select: { customerBranch: { select: { customer: true } } }, select: { customerBranch: { include: { customer: true } } },
}, },
}, },
}, },