mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Fix missing pointer persistence on file gc task
This commit is contained in:
parent
1d4bd34dfc
commit
0078c0e601
1 changed files with 5 additions and 2 deletions
|
@ -275,7 +275,8 @@
|
|||
[{:keys [::db/conn] :as cfg} {:keys [id data revn modified-at features] :as file}]
|
||||
(l/debug :hint "processing file" :id id :modified-at modified-at)
|
||||
|
||||
(binding [pmap/*load-fn* (partial files/load-pointer conn id)]
|
||||
(binding [pmap/*load-fn* (partial files/load-pointer conn id)
|
||||
pmap/*tracked* (atom {})]
|
||||
(let [data (-> (blob/decode data)
|
||||
(assoc :id id)
|
||||
(pmg/migrate-data))]
|
||||
|
@ -291,4 +292,6 @@
|
|||
;; Mark file as trimmed
|
||||
(db/update! conn :file
|
||||
{:has-media-trimmed true}
|
||||
{:id id}))))
|
||||
{:id id})
|
||||
|
||||
(files/persist-pointers! conn id))))
|
||||
|
|
Loading…
Reference in a new issue