diff --git a/backend/src/app/rpc/mutations/teams.clj b/backend/src/app/rpc/mutations/teams.clj index 494204ca8..ce5626d16 100644 --- a/backend/src/app/rpc/mutations/teams.clj +++ b/backend/src/app/rpc/mutations/teams.clj @@ -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"