From 3e1ea57c113175814c1d70f2d8b24c5a795a1dc7 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 28 Sep 2025 17:47:33 +0000 Subject: [PATCH] Fix avatar upload parameter mismatch --- src/components/upload/PhotoUpload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/upload/PhotoUpload.tsx b/src/components/upload/PhotoUpload.tsx index 85371389..a4cf93df 100644 --- a/src/components/upload/PhotoUpload.tsx +++ b/src/components/upload/PhotoUpload.tsx @@ -119,7 +119,7 @@ export function PhotoUpload({ while (attempts < maxAttempts) { try { // Use direct fetch with URL parameters instead of supabase.functions.invoke with body - const response = await fetch(`https://ydvtmnrszybqnbcqbdcy.supabase.co/functions/v1/upload-image?imageId=${encodeURIComponent(id)}`, { + const response = await fetch(`https://ydvtmnrszybqnbcqbdcy.supabase.co/functions/v1/upload-image?id=${encodeURIComponent(id)}`, { method: 'GET', headers: { 'Authorization': `Bearer ${(await supabase.auth.getSession()).data.session?.access_token}`,