Added appointment table

This commit is contained in:
PxlLoewe
2025-02-22 17:39:22 +01:00
parent 8e1e9a67be
commit 00efe207b2
7 changed files with 192 additions and 38 deletions

View File

@@ -16,7 +16,11 @@ export default async ({ params }: { params: Promise<{ id: string }> }) => {
publicId: true,
},
});
console.log(users);
const appointments = await prisma.eventAppointment.findMany({
where: {
eventId: parseInt(id),
},
});
if (!event) return <div>Event not found</div>;
return <Form event={event} users={users} />;
return <Form event={event} users={users} appointments={appointments} />;
};