🐛 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

@ -251,6 +251,7 @@
:created-at created-at
:file-id (:id file)
:revn (:revn file)
:version (:version file)
:label (::snapshot-label file)
:data (::snapshot-data file)
:features (db/create-array conn "text" (:features file))