From 8ad57a0426402831373f9f45705774f875b5b65d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 6 Jan 2019 09:21:16 +0100 Subject: [PATCH] Fix PublishScheduledStatusWorker being queued with no arguments (#9724) --- app/workers/scheduler/scheduled_statuses_scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/scheduler/scheduled_statuses_scheduler.rb b/app/workers/scheduler/scheduled_statuses_scheduler.rb index 70a45846b..1772a246b 100644 --- a/app/workers/scheduler/scheduled_statuses_scheduler.rb +++ b/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