fix: error use select and include together
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 7s

This commit is contained in:
Methapon2001 2025-03-05 13:54:32 +07:00
parent 3a437d78d4
commit 8abca9b137

View file

@ -134,19 +134,15 @@ export class StatsController extends Controller {
) {
await prisma.$transaction(async (tx) => {
const record = await tx.product.findMany({
include: {
quotationProductServiceList: {
include: {
quotation: true,
},
},
},
select: {
id: true,
code: true,
name: true,
createdAt: true,
updatedAt: true,
quotationProductServiceList: {
include: { quotation: true },
},
_count: {
select: {
quotationProductServiceList: {