0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

📎 Minor change on create team instrumentation

This commit is contained in:
Andrey Antukh 2022-03-24 12:29:08 +01:00 committed by Alonso Torres
parent 9abf4b126c
commit 36027583cd

View file

@ -425,7 +425,6 @@
:email email
:hint "looks like the email you invite has been repeatedly reported as spam or permanent bounce"))
(db/exec-one! conn [sql:upsert-team-invitation
(:id team) (str/lower email) (name role) token-exp (name role) token-exp])
@ -438,7 +437,6 @@
:token itoken
:extra-data ptoken})))
;; --- Mutation: Create Team & Invite Members
(s/def ::emails ::us/set-of-emails)
@ -463,7 +461,9 @@
:role role)))
(with-meta team
{:before-complete
{::audit/props {:invitations (count emails)}
:before-complete
#(audit-fn :cmd :submit
:type "mutation"
:name "invite-team-member"