mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 13:36:39 +02:00
✨ Avoid vthread pinning on invitations
This commit is contained in:
parent
4e7f32aa88
commit
e30d1a40bc
1 changed files with 11 additions and 9 deletions
|
@ -764,15 +764,17 @@
|
||||||
:hint "looks like the profile has reported repeatedly as spam or has permanent bounces"))
|
:hint "looks like the profile has reported repeatedly as spam or has permanent bounces"))
|
||||||
|
|
||||||
(let [cfg (assoc cfg ::db/conn conn)
|
(let [cfg (assoc cfg ::db/conn conn)
|
||||||
invitations (->> emails
|
invitations (into []
|
||||||
|
(comp
|
||||||
(remove member?)
|
(remove member?)
|
||||||
(map (fn [email]
|
(map (fn [email]
|
||||||
{:email (str/lower email)
|
{:email (str/lower email)
|
||||||
:team team
|
:team team
|
||||||
:profile profile
|
:profile profile
|
||||||
:role role}))
|
:role role}))
|
||||||
(keep (partial create-invitation cfg)))]
|
(keep (partial create-invitation cfg)))
|
||||||
(with-meta (vec invitations)
|
emails)]
|
||||||
|
(with-meta invitations
|
||||||
{::audit/props {:invitations (count invitations)}})))))
|
{::audit/props {:invitations (count invitations)}})))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue