From 45cd1ec21387bdd94d2957d329a0da7644fc943b Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 25 Apr 2022 17:54:56 +0200 Subject: [PATCH] Add orderBy statement to make debugging easier --- apps/api/src/services/data-gathering.service.ts | 1 + 1 file changed, 1 insertion(+) 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 } }