mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-26 09:26:12 +01:00
Sort expenses by expense date, then by creation date (partial workaround for #67)
This commit is contained in:
@@ -249,7 +249,7 @@ export async function getGroupExpenses(groupId: string) {
|
|||||||
paidBy: true,
|
paidBy: true,
|
||||||
category: true,
|
category: true,
|
||||||
},
|
},
|
||||||
orderBy: { expenseDate: 'desc' },
|
orderBy: [{ expenseDate: 'desc' }, { createdAt: 'desc' }],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user