Pfadauswahl hinzugefügt
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { prisma } from "@repo/db";
|
||||
import { getServerSession } from "../../api/auth/[...nextauth]/auth";
|
||||
import { KursItem } from "./_components/item";
|
||||
import { EventCard } from "./_components/item";
|
||||
import { RocketIcon } from "@radix-ui/react-icons";
|
||||
|
||||
const page = async () => {
|
||||
@@ -11,14 +11,14 @@ const page = async () => {
|
||||
|
||||
const events = await prisma.event.findMany({
|
||||
include: {
|
||||
appointments: {
|
||||
Appointments: {
|
||||
where: {
|
||||
appointmentDate: {
|
||||
gte: new Date(),
|
||||
},
|
||||
},
|
||||
},
|
||||
participants: {
|
||||
Participants: {
|
||||
where: {
|
||||
userId: user.id,
|
||||
},
|
||||
@@ -69,7 +69,7 @@ const page = async () => {
|
||||
|
||||
{events.map((event) => {
|
||||
return (
|
||||
<KursItem
|
||||
<EventCard
|
||||
appointments={appointments}
|
||||
selectedAppointments={userAppointments}
|
||||
user={user}
|
||||
|
||||
Reference in New Issue
Block a user