From 5a8f8ba34996dec9837799cb61f4041d0af8ad93 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 31 Jan 2023 11:59:28 +0100 Subject: [PATCH] :bug: Fix create team and invite --- backend/src/app/rpc/commands/teams.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/teams.clj b/backend/src/app/rpc/commands/teams.clj index 70c8101b8..ff07667e6 100644 --- a/backend/src/app/rpc/commands/teams.clj +++ b/backend/src/app/rpc/commands/teams.clj @@ -786,7 +786,8 @@ {::doc/added "1.17"} [{:keys [pool] :as cfg} {:keys [::rpc/profile-id emails role] :as params}] (db/with-atomic [conn pool] - (let [team (create-team conn params) + (let [params (assoc params :profile-id profile-id) + team (create-team conn params) profile (db/get-by-id conn :profile profile-id) cfg (assoc cfg ::conn conn)]