0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

🐛 Fix incorrect bucket assignation on binfile thumbnails import

This commit is contained in:
Andrey Antukh 2023-11-24 08:43:23 +01:00
parent 1de2af744f
commit c1bd1a945d

View file

@ -866,15 +866,14 @@
(sto/wrap-with-hash hash))
params (assoc mdata ::sto/content content)
params (if (thumb? id)
(-> params
(assoc ::sto/deduplicate? false)
(assoc :bucket "file-object-thumbnail"))
(-> params
(assoc ::sto/deduplicate? true)
(assoc ::sto/touched-at (dt/now))
(assoc :bucket "file-media-object"))
(-> params
(assoc ::sto/deduplicate? false)
(assoc :bucket "file-object-thumbnail")))
(assoc :bucket "file-media-object")))
sobject (sto/put-object! storage params)]