Skip to content

Commit

Permalink
✨ Relax transaction requirements on create-team rpc method
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz authored and Alotor committed Oct 8, 2024
1 parent f777845 commit c6917bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/app/rpc/commands/teams.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)}})))
Expand Down

0 comments on commit c6917bb

Please sign in to comment.