Handle possibility of user account in a bulk operation not having an email address
This commit is contained in:
parent
75b6fef25d
commit
d23d0c27c2
2 changed files with 3 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ defmodule Mix.Tasks.Pleroma.Email do
|
|||
|> Pleroma.RepoStreamer.chunk_stream(500)
|
||||
|> Stream.each(fn users ->
|
||||
users
|
||||
|> Enum.each(fn user -> Pleroma.User.send_confirmation_email(user) end)
|
||||
|> Enum.each(fn user -> Pleroma.User.try_send_confirmation_email(user) end)
|
||||
end)
|
||||
|> Stream.run()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue