mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 03:39:13 +00:00
Cannot use batches with User.try_send_confirmation_email/1
This commit is contained in:
parent
935ef21b02
commit
e33360fdb9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ defmodule Mix.Tasks.Pleroma.Email do
|
||||||
confirmation_pending: true,
|
confirmation_pending: true,
|
||||||
invisible: false
|
invisible: false
|
||||||
})
|
})
|
||||||
|> Pleroma.Repo.chunk_stream(500, :batches)
|
|> Pleroma.Repo.chunk_stream(500)
|
||||||
|> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
|
|> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
|
||||||
|> Stream.run()
|
|> Stream.run()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue