From c6917bb0cf24ff5c05dd2d3d75b351cf6c853ba5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 7 Oct 2024 15:08:56 +0200 Subject: [PATCH] :sparkles: Relax transaction requirements on create-team rpc method --- backend/src/app/rpc/commands/teams.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/app/rpc/commands/teams.clj b/backend/src/app/rpc/commands/teams.clj index ca1cd40fb4..69a7feeb8d 100644 --- a/backend/src/app/rpc/commands/teams.clj +++ b/backend/src/app/rpc/commands/teams.clj @@ -401,8 +401,7 @@ (sv/defmethod ::create-team {::doc/added "1.17" - ::sm/params schema:create-team - ::db/transaction true} + ::sm/params schema:create-team} [cfg {:keys [::rpc/profile-id] :as params}] (quotes/check! cfg {::quotes/id ::quotes/teams-per-profile @@ -413,7 +412,7 @@ params (-> params (assoc :profile-id profile-id) (assoc :features features)) - team (create-team cfg params)] + team (db/tx-run! cfg create-team params)] (with-meta team {::audit/props {:id (:id team)}})))