venues and ui changes

This commit is contained in:
2025-07-24 09:42:57 -04:00
parent 049def6886
commit 27590f9509
24 changed files with 757 additions and 164 deletions

View File

@@ -10,13 +10,37 @@ export const queries = {
username: true
}
},
location: true
venue: true
},
})
return allEvents;
},
async fetchQuickViewEvents() {
const events = await prisma.event.findMany({
take: 3,
select: {
id: true,
name: true,
date: true,
creator: {
select: {
id: true,
username: true,
}
},
venue: {
select: {
name: true,
},
},
}
})
return events
},
async fetchEventGuests(eventId: string) {
return await prisma.eventGuest.findMany({
where: { eventId },
@@ -78,7 +102,7 @@ export const queries = {
{ dueDate: 'asc' },
],
},
location: true
venue: true
}
})
return event
@@ -136,7 +160,7 @@ export const queries = {
},
async fetchAllLocations() {
return await prisma.location.findMany()
return await prisma.venue.findMany()
},
}