Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Add orderBy statement to make debugging easier (#868)

Thomas Kaulda27504aa11e
diff --git a/apps/api/src/services/data-gathering.service.ts b/apps/api/src/services/data-gathering.service.ts
index d878b014ba..b64afbde4e 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 }
}