Get rid of all batch order warnings (#8334)
This commit is contained in:
parent
83746b6364
commit
d98de8ada7
10 changed files with 19 additions and 19 deletions
|
@ -6,7 +6,7 @@ class Scheduler::EmailScheduler
|
|||
sidekiq_options unique: :until_executed
|
||||
|
||||
def perform
|
||||
eligible_users.find_each do |user|
|
||||
eligible_users.reorder(nil).find_each do |user|
|
||||
next unless user.allows_digest_emails?
|
||||
DigestMailerWorker.perform_async(user.id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue