From 494f42a4c37817e3f2d32bd33e2ef576860a71a0 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Tue, 11 Mar 2025 21:22:45 +0000 Subject: [PATCH] fixed a bit --- app/(main)/team/[teamId]/route.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/(main)/team/[teamId]/route.js b/app/(main)/team/[teamId]/route.js index ff4e36a..a21f4a2 100644 --- a/app/(main)/team/[teamId]/route.js +++ b/app/(main)/team/[teamId]/route.js @@ -93,9 +93,8 @@ export async function PATCH(request, context) { ); } catch (error) { console.error("Team update error:", error); - return new Response( - JSON.stringify({ error: "Failed to update team" }), - { status: 500 } - ); + return new Response(JSON.stringify({ error: "Failed to update team" }), { + status: 500, + }); } }