elorenzen / dropby

Food truck and bar scheduling platform
0 stars 0 forks source link

Image Storage Updates #28

Open elorenzen opened 2 weeks ago

elorenzen commented 2 weeks ago

For merchant, vendor, ~menu items~ images, do the following:

  1. Add 'image_name' column in each of above collections
  2. If editing and image exists, create separate function that uses supabase storage update event to replace existing image.
  3. When deleting, use newly created 'image_name' field to delete file from storage bucket(can't currently be done because only the Public URL is saved in respective Db collections.