Changed error boundary to cover both full hub and disaptch app

This commit is contained in:
PxlLoewe
2025-05-29 22:25:30 -07:00
parent d968507484
commit 0cebe2b97e
24 changed files with 226 additions and 194 deletions

View File

@@ -6,11 +6,7 @@ import { RocketIcon } from "@radix-ui/react-icons";
const page = async () => {
const session = await getServerSession();
if (!session) return null;
const user = await prisma.user.findUnique({
where: {
id: session.user.id,
},
});
const user = session.user;
if (!user) return null;
const events = await prisma.event.findMany({