Fix PublishScheduledStatusWorker being queued with no arguments (#9724)

master
Eugen Rochko 6 years ago committed by GitHub
parent c73653ce23
commit 8ad57a0426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/workers/scheduler/scheduled_statuses_scheduler.rb

@ -7,7 +7,7 @@ class Scheduler::ScheduledStatusesScheduler
def perform
due_statuses.find_each do |scheduled_status|
PublishScheduledStatusWorker.perform_at(scheduled_status.scheduled_at)
PublishScheduledStatusWorker.perform_at(scheduled_status.scheduled_at, scheduled_status.id)
end
end

Loading…
Cancel
Save