1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Cannot use batches with User.try_send_confirmation_email/1

This commit is contained in:
Mark Felder 2020-09-24 18:23:47 -05:00
parent 935ef21b02
commit e33360fdb9

View file

@ -31,7 +31,7 @@ def run(["resend_confirmation_emails"]) 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