diff --git a/supabase/functions/create-google-meet-event/index.ts b/supabase/functions/create-google-meet-event/index.ts index efcf5cf..fc6b6ee 100644 --- a/supabase/functions/create-google-meet-event/index.ts +++ b/supabase/functions/create-google-meet-event/index.ts @@ -85,7 +85,8 @@ serve(async (req: Request): Promise => { const supabaseServiceKey = Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")!; const supabase = createClient(supabaseUrl, supabaseServiceKey); - const body: CreateMeetRequest = await req.json(); + // Clone the request before reading body to handle multiple reads + const body: CreateMeetRequest = await req.clone().json(); console.log("Creating Google Meet event for slot:", body.slot_id); // Get platform settings