0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

🐛 Fix create team and invite

This commit is contained in:
Alejandro Alonso 2023-01-31 11:59:28 +01:00 committed by Alonso Torres
parent f4f1f80050
commit 5a8f8ba349

View file

@ -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)]