Fix avatar upload parameter mismatch

This commit is contained in:
gpt-engineer-app[bot]
2025-09-28 17:47:33 +00:00
parent 9c9f519fc2
commit 3e1ea57c11

View File

@@ -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}`,