diff --git a/app/agenda/page.tsx b/app/agenda/page.tsx index c464ca1..37ce451 100644 --- a/app/agenda/page.tsx +++ b/app/agenda/page.tsx @@ -45,7 +45,7 @@ export default async function CalendarPage() { const userId = session.user.username || session.user.email || ''; // Get all calendars for the user with mission relation - const calendars = await prisma.calendar.findMany({ + let calendars = await prisma.calendar.findMany({ where: { userId: session?.user?.id || '', },