added event appointments

This commit is contained in:
PxlLoewe
2025-02-22 15:58:04 +01:00
parent 3fd0e991fd
commit 433b3713c6
9 changed files with 199 additions and 47 deletions

View File

@@ -8,6 +8,14 @@ export default async ({ params }: { params: Promise<{ id: string }> }) => {
id: parseInt(id),
},
});
const users = await prisma.user.findMany({
select: {
id: true,
firstname: true,
lastname: true,
publicId: true,
},
});
if (!event) return <div>Event not found</div>;
return <Form event={event} />;
return <Form event={event} users={users} />;
};