fix stats api

This commit is contained in:
jejolare 2025-07-30 19:32:24 +07:00
parent c7ebefe462
commit 040163df0e

View file

@ -91,6 +91,9 @@ class StatsController {
as: 'buy_orders',
attributes: ['amount'],
required: true,
where: {
status: 'confirmed',
},
},
],
order: [['timestamp', 'ASC']],
@ -209,6 +212,9 @@ class StatsController {
as: 'buy_orders',
attributes: ['amount'],
required: true,
where: {
status: 'confirmed',
},
},
],
order: [['timestamp', 'ASC']],