mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -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}]
|
[{: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)
|
(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)
|
(let [data (-> (blob/decode data)
|
||||||
(assoc :id id)
|
(assoc :id id)
|
||||||
(pmg/migrate-data))]
|
(pmg/migrate-data))]
|
||||||
|
@ -291,4 +292,6 @@
|
||||||
;; Mark file as trimmed
|
;; Mark file as trimmed
|
||||||
(db/update! conn :file
|
(db/update! conn :file
|
||||||
{:has-media-trimmed true}
|
{:has-media-trimmed true}
|
||||||
{:id id}))))
|
{:id id})
|
||||||
|
|
||||||
|
(files/persist-pointers! conn id))))
|
||||||
|
|
Loading…
Reference in a new issue