fixed a few errors

This commit is contained in:
2026-01-29 13:34:14 -06:00
parent b4eebfaf6d
commit 307f073259
2 changed files with 2 additions and 2 deletions

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 }
);
}

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 });