From 35f44a6eb4155f917878fc1fdceb3edc19cae244 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 11 Feb 2025 14:44:37 +0100 Subject: [PATCH] :bug: Remove duplicate decoding on srepl helper get-file --- backend/src/app/srepl/helpers.clj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/app/srepl/helpers.clj b/backend/src/app/srepl/helpers.clj index 126a3db518..8aba532b3f 100644 --- a/backend/src/app/srepl/helpers.clj +++ b/backend/src/app/srepl/helpers.clj @@ -39,10 +39,7 @@ ([id] (get-file (or *system* main/system) id)) ([system id] - (db/run! system - (fn [system] - (->> (bfc/get-file system id ::db/for-update true) - (bfc/decode-file system)))))) + (db/run! system bfc/get-file id))) (defn get-raw-file "Get the migrated data of one file."