From c3b624f36fcd0207730719628ed34dc48461323e Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 27 Oct 2022 19:55:23 +0200 Subject: [PATCH] add order by clause --- backend/src/graphql/resolver/util/creations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/graphql/resolver/util/creations.ts b/backend/src/graphql/resolver/util/creations.ts index 8371f96f1..abf4017cb 100644 --- a/backend/src/graphql/resolver/util/creations.ts +++ b/backend/src/graphql/resolver/util/creations.ts @@ -60,6 +60,7 @@ export const getUserCreations = async ( .andWhere('denied_at IS NULL') .groupBy('month') .addGroupBy('userId') + .orderBy('month', 'DESC') if (!includePending) { sumAmountContributionPerUserAndLast3MonthQuery.andWhere('confirmed_at IS NOT NULL')