From 0b346e02ff5f1f5a916148c3dc34269d9060e2aa Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 22 Sep 2025 11:30:42 +0200 Subject: [PATCH] :bug: Fix incorrect options pass on decode-file --- backend/src/app/binfile/common.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/app/binfile/common.clj b/backend/src/app/binfile/common.clj index 9e614cc148..6299ab9179 100644 --- a/backend/src/app/binfile/common.clj +++ b/backend/src/app/binfile/common.clj @@ -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]