From aadd312e39fd72b12529ac51f381b6cea8e10516 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 8 Nov 2023 13:37:02 +0100 Subject: [PATCH] :bug: Fix team image uploading --- backend/src/app/rpc/commands/teams.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/teams.clj b/backend/src/app/rpc/commands/teams.clj index d0271d93a..39dc53495 100644 --- a/backend/src/app/rpc/commands/teams.clj +++ b/backend/src/app/rpc/commands/teams.clj @@ -651,7 +651,7 @@ (defn update-team-photo [{:keys [::db/pool ::sto/storage] :as cfg} {:keys [profile-id team-id] :as params}] - (let [team (get-team pool profile-id team-id) + (let [team (get-team cfg :profile-id profile-id :team-id team-id) photo (profile/upload-photo cfg params)] (db/with-atomic [conn pool]