Moving the queue_at into the worker

This commit is contained in:
Kurtis Rainbolt-Greene 2017-04-04 20:39:14 -07:00 committed by GitHub
parent dc5704b0b0
commit 0069c01285

View File

@ -7,7 +7,7 @@ class PushUpdateWorker
account = Account.find(account_id) account = Account.find(account_id)
status = Status.find(status_id) status = Status.find(status_id)
message = inline_render(account, 'api/v1/statuses/show', status) message = inline_render(account, 'api/v1/statuses/show', status)
queue_at = (Time.now.to_f * 1000.0).to_i
ActionCable.server.broadcast("timeline:#{account_id}", type: 'update', timeline: timeline, message: message) ActionCable.server.broadcast("timeline:#{account_id}", type: 'update', timeline: timeline, message: message)
end end
end end