Cannot use batches with User.try_send_confirmation_email/1
authorMark Felder <feld@FreeBSD.org>
Thu, 24 Sep 2020 23:23:47 +0000 (18:23 -0500)
committerMark Felder <feld@FreeBSD.org>
Thu, 24 Sep 2020 23:23:47 +0000 (18:23 -0500)
lib/mix/tasks/pleroma/email.ex

index 0e4c87598d689d71a10bda6720a48fd9525302f9..9e989ed465b05295c16e4b34b8bb6f275f95b553 100644 (file)
@@ -31,7 +31,7 @@ defmodule Mix.Tasks.Pleroma.Email do
       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