Skip to content

Commit 0cf65e1

Browse files
authored
Merge pull request #1728 from codidact/art/1724/email-chunks
Reduce email chunks
2 parents 8f917b1 + 5ffa318 commit 0cf65e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/admin_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def send_all_email
6565

6666
Thread.new do
6767
emails = User.where.not(confirmed_at: nil).where('email NOT LIKE ?', '%localhost').select(:email).map(&:email)
68-
emails.each_slice(50) do |slice|
68+
emails.each_slice(49) do |slice|
6969
AdminMailer.with(body_markdown: params[:body_markdown],
7070
subject: params[:subject],
7171
emails: slice, community: community)

0 commit comments

Comments
 (0)