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:
parent
1de2af744f
commit
c1bd1a945d
1 changed files with 4 additions and 5 deletions
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue