diff options
| author | Brandon Eng <bce25@cornell.edu> | 2024-01-16 22:41:46 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-16 10:41:46 -0500 |
| commit | 36cc4f1ef745a027540050ad668db3bcdc08d4b2 (patch) | |
| tree | 73d45c30b1e17e92b676701ba9ee3f6fb1071870 /src/lib | |
| parent | 1141501edb6611b7ac147b6ceefb963ba1f83606 (diff) | |
Ability to archive groups when they’re settled up (#45)
* Settled up icon on group card
* remove logs
* archived groups
* remove settled up
* remove more settled up
* recent-group-list-card
* sortGroups
* archiveGroup
* unarchiveGroup
* clean up
* more clean up
* Prettier, fix TS errors, add titles
---------
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/api.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/api.ts b/src/lib/api.ts index 2a03ded..c27e584 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -218,7 +218,11 @@ export async function getGroupExpenses(groupId: string) { const prisma = await getPrisma() return prisma.expense.findMany({ where: { groupId }, - include: { paidFor: { include: { participant: true } }, paidBy: true, category: true }, + include: { + paidFor: { include: { participant: true } }, + paidBy: true, + category: true, + }, orderBy: { expenseDate: 'desc' }, }) } |
