added event appointments
This commit is contained in:
@@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user