🐛 Make the media cleaning on file-gc task aware of snapshots

It now takes in account the snapshots, and prevents
deletion of media files used in snapshots.
This commit is contained in:
Andrey Antukh 2024-09-02 16:40:18 +02:00
parent 71ba0242c7
commit 50df2279a7
7 changed files with 53 additions and 31 deletions

View file

@ -506,6 +506,6 @@
(rx/mapcat rp/handle-response)
(rx/subs! (fn [_]
(println "Snapshot restored " (or snapshot-id label)))
#_(.reload js/location))
(fn [cause]
(js/console.log "EE:" cause))))))
#_(.reload js/location)
(fn [cause]
(js/console.log "EE:" cause)))))))