fix: empty response
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 7s

This commit is contained in:
Methapon2001 2025-03-05 15:04:17 +07:00
parent 0eed3c55f6
commit c0bc31714e

View file

@ -134,7 +134,7 @@ export class StatsController extends Controller {
@Query() startDate?: Date,
@Query() endDate?: Date,
) {
await prisma.$transaction(async (tx) => {
return await prisma.$transaction(async (tx) => {
const record = await tx.product.findMany({
select: {
id: true,