From 56472a95deee84a161cd37ddc32628cb8301cae0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 25 Jun 2025 11:56:11 +0200 Subject: [PATCH] :bug: Add missing file migration to get-team-shared-files rpc method --- backend/src/app/rpc/commands/files.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index f492d2520f..cfd9b4a947 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -595,7 +595,11 @@ (teams/check-read-permissions! conn profile-id team-id) (->> (db/exec! conn [sql:team-shared-files team-id]) (into #{} (comp - (map decode-row) + ;; NOTE: this decode operation is a workaround for a + ;; fast fix, this should be approached with a more + ;; efficient implementation, for now it loads all + ;; the files in memory. + (map (partial bfc/decode-file cfg)) (map (fn [row] (if-let [media-id (:media-id row)] (-> row