Remote Timeline: add Streaming support
[akkoma] / lib / mix / tasks / pleroma / email.ex
index 0e4c87598d689d71a10bda6720a48fd9525302f9..9972cb9880d590acb293903a595a346e93e9ac8b 100644 (file)
@@ -25,13 +25,15 @@ defmodule Mix.Tasks.Pleroma.Email do
   def run(["resend_confirmation_emails"]) do
     start_pleroma()
 
+    shell_info("Sending emails to all unconfirmed users")
+
     Pleroma.User.Query.build(%{
       local: true,
       deactivated: false,
       confirmation_pending: true,
       invisible: false
     })
-    |> Pleroma.Repo.chunk_stream(500, :batches)
+    |> Pleroma.Repo.chunk_stream(500)
     |> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
     |> Stream.run()
   end