fixed a few errors

This commit is contained in:
KeshavAnandCode committed 2026-01-29 13:34:14 -06:00
1 parent b4eebfaf6d
commit 307f073259
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ export async function POST(
if (error instanceof ZodError) {
return NextResponse.json(
{ error: error.errors[0].message },
{ error: error.issues[0].message },
{ status: 400 }
);
}
+1 -1
View File
@@ -94,7 +94,7 @@ export async function POST(
console.error('Room action error:', error);
if (error instanceof ZodError) {
return NextResponse.json({ error: error.errors[0].message }, { status: 400 });
return NextResponse.json({ error: error.issues[0].message }, { status: 400 });
}
return NextResponse.json({ error: 'Invalid request' }, { status: 400 });