Skip to content

Commit

Permalink
Sort expenses by expense date, then by creation date (partial workaro…
Browse files Browse the repository at this point in the history
…und for #67)
  • Loading branch information
scastiel committed Jan 29, 2024
1 parent 7695ffd commit 3847a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export async function getGroupExpenses(groupId: string) {
paidBy: true,
category: true,
},
orderBy: { expenseDate: 'desc' },
orderBy: [{ expenseDate: 'desc' }, { createdAt: 'desc' }],
})
}

Expand Down

0 comments on commit 3847a67

Please sign in to comment.