🐛 Fix incorrect options pass on decode-file

This commit is contained in:
Andrey Antukh 2025-09-22 11:30:42 +02:00
parent 946f641917
commit 0b346e02ff
1 changed files with 3 additions and 3 deletions

View File

@ -188,9 +188,9 @@
and decoding."
[cfg file-id & {:as opts}]
(db/run! cfg (fn [{:keys [::db/conn] :as cfg}]
(some->> (db/get* conn :file {:id file-id}
(assoc opts ::db/remove-deleted false))
(decode-file cfg)))))
(when-let [row (db/get* conn :file {:id file-id}
(assoc opts ::db/remove-deleted false))]
(decode-file cfg row opts)))))
(defn clean-file-features
[file]