fix: some data not return
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
This commit is contained in:
parent
329c69ec3d
commit
78007f1cba
1 changed files with 3 additions and 3 deletions
|
|
@ -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 } } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue