fixed chat zustand bug

This commit is contained in:
PxlLoewe
2025-03-21 10:27:32 -07:00
parent 71aff2d66a
commit b7eb148ca6
17 changed files with 399 additions and 91 deletions

View File

@@ -10,7 +10,6 @@ if (!process.env.LIVEKIT_API_SECRET)
export const GET = async () => {
const session = await getServerSession();
console.log(session?.user.permissions);
if (!session)
return Response.json({ message: "Unauthorized" }, { status: 401 });
const user = await prisma.user.findUnique({
@@ -18,7 +17,6 @@ export const GET = async () => {
id: session.user.id,
},
});
console.log(user);
if (!user || !user.permissions.includes("AUDIO"))
return Response.json({ message: "Missing permissions" }, { status: 401 });