add order by clause

This commit is contained in:
Moriz Wahl 2022-10-27 19:55:23 +02:00
parent 568a6cdd2c
commit c3b624f36f

View File

@ -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')