Füge Benutzerabfrage zum neuen Ereignisformular hinzu und aktualisiere das Ereignisformular-Layout
This commit is contained in:
@@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user