aboutsummaryrefslogtreecommitdiff
path: root/lib/mix/tasks/pleroma/email.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mix/tasks/pleroma/email.ex')
-rw-r--r--lib/mix/tasks/pleroma/email.ex7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mix/tasks/pleroma/email.ex b/lib/mix/tasks/pleroma/email.ex
index c0bef0386..1f543241a 100644
--- a/lib/mix/tasks/pleroma/email.ex
+++ b/lib/mix/tasks/pleroma/email.ex
@@ -31,11 +31,8 @@ defmodule Mix.Tasks.Pleroma.Email do
confirmation_pending: true,
invisible: false
})
- |> Pleroma.RepoStreamer.chunk_stream(500)
- |> Stream.each(fn users ->
- users
- |> Enum.each(fn user -> Pleroma.User.try_send_confirmation_email(user) end)
- end)
+ |> Pleroma.Repo.chunk_stream(500, :batches)
+ |> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
|> Stream.run()
end
end