mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 17:16:11 +02:00
🐛 Fix incompatibility of binfile exportation with offload feature
This commit is contained in:
parent
5793c526c0
commit
f62aecb383
3 changed files with 44 additions and 13 deletions
|
@ -52,6 +52,15 @@
|
|||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(def file-attrs
|
||||
#{:id
|
||||
:name
|
||||
:features
|
||||
:project-id
|
||||
:is-shared
|
||||
:version
|
||||
:data})
|
||||
|
||||
(def xf-map-id
|
||||
(map :id))
|
||||
|
||||
|
@ -129,10 +138,11 @@
|
|||
(binding [pmap/*load-fn* (partial feat.fdata/load-pointer cfg file-id)]
|
||||
(when-let [file (db/get* conn :file {:id file-id}
|
||||
{::db/remove-deleted false})]
|
||||
(-> file
|
||||
(decode-row)
|
||||
(update :data feat.fdata/process-pointers deref)
|
||||
(update :data feat.fdata/process-objects (partial into {}))))))))
|
||||
(let [file (feat.fdata/resolve-file-data cfg file)]
|
||||
(-> file
|
||||
(decode-row)
|
||||
(update :data feat.fdata/process-pointers deref)
|
||||
(update :data feat.fdata/process-objects (partial into {})))))))))
|
||||
|
||||
(defn clean-file-features
|
||||
[file]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue