Füge Benutzerabfrage zum neuen Ereignisformular hinzu und aktualisiere das Ereignisformular-Layout

This commit is contained in:
PxlLoewe
2025-02-22 16:18:19 +01:00
parent 06e8f9e92a
commit 8e1e9a67be
4 changed files with 15 additions and 4 deletions

View File

@@ -1,5 +1,14 @@
import { prisma } from '@repo/db';
import { Form } from '../_components/Form';
export default () => {
return <Form />;
export default async () => {
const users = await prisma.user.findMany({
select: {
id: true,
firstname: true,
lastname: true,
publicId: true,
},
});
return <Form users={users} />;
};