Refactor ApplyBusiness component to update bucket name for file uploads

This commit is contained in:
THIS ONE IS A LITTLE BIT TRICKY KRUB 2024-10-21 21:28:59 +07:00
parent f70c3a5573
commit fd3930f306

View File

@ -9,7 +9,7 @@ import Swal from "sweetalert2";
import { getCurrentUserID } from "@/app/api/userApi";
type businessSchema = z.infer<typeof businessFormSchema>;
const BUCKET_NAME = "project-pitches";
const BUCKET_NAME = "business-pitches";
let supabase = createSupabaseClient();
async function uploadFile(file: File, userID: string, bucketName: string) {