about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-01-06 09:21:16 +0100
committerGitHub <noreply@github.com>2019-01-06 09:21:16 +0100
commit8ad57a0426402831373f9f45705774f875b5b65d (patch)
tree3c60a348fb877beecf90774d0deb2c8cbd2e7afd /app
parentc73653ce2351a78a2fc8e5107e5c8942b558058e (diff)
Fix PublishScheduledStatusWorker being queued with no arguments (#9724)
Diffstat (limited to 'app')
-rw-r--r--app/workers/scheduler/scheduled_statuses_scheduler.rb2
1 files changed, 1 insertions, 1 deletions
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