styling friday

This commit is contained in:
2025-06-27 12:01:46 -04:00
parent 29c91fee7f
commit 216d10855f
14 changed files with 309 additions and 67 deletions

View File

@@ -29,12 +29,12 @@ export const queries = {
return event
},
async fetchGuestBookEntries() {
async fetchGuestBookEntries(amount?: number) {
return await prisma.guestBookEntry.findMany({
orderBy: [
{ lName: 'asc' },
{ fName: 'asc' }
],
orderBy: amount
? { createdAt: 'desc'}
: [{ lName: 'asc' }, { fName: 'asc' }],
...(amount ? {take: amount} : {})
})
},
}