mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ Relax transaction requirements on create-team rpc method
This commit is contained in:
parent
f777845d14
commit
c6917bb0cf
@ -401,8 +401,7 @@
|
|||||||
|
|
||||||
(sv/defmethod ::create-team
|
(sv/defmethod ::create-team
|
||||||
{::doc/added "1.17"
|
{::doc/added "1.17"
|
||||||
::sm/params schema:create-team
|
::sm/params schema:create-team}
|
||||||
::db/transaction true}
|
|
||||||
[cfg {:keys [::rpc/profile-id] :as params}]
|
[cfg {:keys [::rpc/profile-id] :as params}]
|
||||||
|
|
||||||
(quotes/check! cfg {::quotes/id ::quotes/teams-per-profile
|
(quotes/check! cfg {::quotes/id ::quotes/teams-per-profile
|
||||||
@ -413,7 +412,7 @@
|
|||||||
params (-> params
|
params (-> params
|
||||||
(assoc :profile-id profile-id)
|
(assoc :profile-id profile-id)
|
||||||
(assoc :features features))
|
(assoc :features features))
|
||||||
team (create-team cfg params)]
|
team (db/tx-run! cfg create-team params)]
|
||||||
|
|
||||||
(with-meta team
|
(with-meta team
|
||||||
{::audit/props {:id (:id team)}})))
|
{::audit/props {:id (:id team)}})))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user