0
Fork 0
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:
Andrey Antukh 2023-05-19 19:39:15 +02:00 committed by Alejandro Alonso
parent 1d4bd34dfc
commit 0078c0e601

View file

@ -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))))