mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-07 08:06: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,
|
||||
category: true,
|
||||
},
|
||||
orderBy: { expenseDate: 'desc' },
|
||||
orderBy: [{ expenseDate: 'desc' }, { createdAt: 'desc' }],
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user