From 59aafca923a672312bafb8eb17be4ce6f502660b Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 21:58:53 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/test-skill-dry-run/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supabase/functions/test-skill-dry-run/index.ts b/supabase/functions/test-skill-dry-run/index.ts index 07ecc37..648e076 100644 --- a/supabase/functions/test-skill-dry-run/index.ts +++ b/supabase/functions/test-skill-dry-run/index.ts @@ -35,11 +35,10 @@ Deno.serve(async (req) => { const userId = userData.user.id; let body: { skill_version_id?: string; test_input?: string }; - try { - body = await req.json(); let body: { skill_version_id?: string; test_input?: string; markdown_content?: string }; try { body = await req.json(); + } catch { return new Response(JSON.stringify({ error: "JSON inválido" }), { status: 400,