mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-23 11:35:06 +01:00
Chase Pleroma.RepoStreamer.chunk_stream -> Pleroma.Repo.chunk_stream
This commit is contained in:
parent
f3a1f9c3bb
commit
8af8eb5ce7
@ -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
|
||||
|
@ -370,7 +370,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
||||
is_admin: false,
|
||||
invisible: false
|
||||
})
|
||||
|> Pleroma.RepoStreamer.chunk_stream(500)
|
||||
|> Pleroma.Repo.chunk_stream(500, :batches)
|
||||
|> Stream.each(fn users ->
|
||||
users
|
||||
|> Enum.each(fn user -> User.need_confirmation(user, false) end)
|
||||
@ -388,7 +388,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
||||
is_admin: false,
|
||||
invisible: false
|
||||
})
|
||||
|> Pleroma.RepoStreamer.chunk_stream(500)
|
||||
|> Pleroma.Repo.chunk_stream(500, :batches)
|
||||
|> Stream.each(fn users ->
|
||||
users
|
||||
|> Enum.each(fn user -> User.need_confirmation(user, true) end)
|
||||
|
Loading…
Reference in New Issue
Block a user