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