Fix PublishScheduledStatusWorker being queued with no arguments (#9724)

This commit is contained in:
Eugen Rochko 2019-01-06 09:21:16 +01:00 committed by GitHub
parent c73653ce23
commit 8ad57a0426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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