Sort expenses by expense date, then by creation date (partial workaround for #67)

This commit is contained in:
Sebastien Castiel
2024-01-29 15:14:51 -05:00
parent 7695ffd62d
commit 3847a67a19

View File

@@ -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' }],
}) })
} }