diff --git a/apps/api/src/services/data-gathering.service.ts b/apps/api/src/services/data-gathering.service.ts index c3a7f64c7..bb38e1481 100644 --- a/apps/api/src/services/data-gathering.service.ts +++ b/apps/api/src/services/data-gathering.service.ts @@ -537,6 +537,7 @@ export class DataGatheringService { await this.prismaService.marketData.groupBy({ _count: true, by: ['symbol'], + orderBy: [{ symbol: 'asc' }], where: { date: { gt: startDate } }