From b30d525400fe62f83eb51fe9e27749d087d8691d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 11 Mar 2024 10:59:38 +0100 Subject: [PATCH] :bug: Fix opts passing on process-file! srepl helper --- backend/src/app/srepl/main.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/srepl/main.clj b/backend/src/app/srepl/main.clj index ba9693e93c..17df79a9a7 100644 --- a/backend/src/app/srepl/main.clj +++ b/backend/src/app/srepl/main.clj @@ -378,11 +378,11 @@ (defn process-file! "Apply a function to the file. Optionally save the changes or not. The function receives the decoded and migrated file data." - [file-id update-fn & {:keys [rollback?] :or {rollback? true}}] + [file-id update-fn & {:keys [rollback?] :or {rollback? true} :as opts}] (db/tx-run! (assoc main/system ::db/rollback rollback?) (fn [system] (binding [h/*system* system] - (h/process-file! system file-id update-fn))))) + (h/process-file! system file-id update-fn opts))))) (defn process-team-files! "Apply a function to each file of the specified team."