mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 12:51:16 -05:00
feat: Implement plan for bug fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import { invokeWithTracking } from '@/lib/edgeFunctionTracking';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
@@ -96,9 +97,11 @@ export function UppyPhotoSubmissionUpload({
|
||||
|
||||
try {
|
||||
// Get upload URL from edge function
|
||||
const { data: uploadData, error: uploadError } = await supabase.functions.invoke('upload-image', {
|
||||
body: { metadata: { requireSignedURLs: false }, variant: 'public' }
|
||||
});
|
||||
const { data: uploadData, error: uploadError } = await invokeWithTracking(
|
||||
'upload-image',
|
||||
{ metadata: { requireSignedURLs: false }, variant: 'public' },
|
||||
user?.id
|
||||
);
|
||||
|
||||
if (uploadError) throw uploadError;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user