fix: harden booking and meeting flows
This commit is contained in:
@@ -53,6 +53,7 @@ export async function POST(request: Request) {
|
||||
try {
|
||||
const raw = await request.text();
|
||||
body = JSON.parse(raw);
|
||||
if (!body || typeof body !== "object" || Array.isArray(body)) throw new Error("Invalid body");
|
||||
} catch {
|
||||
return new NextResponse(null, { status: 204 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user