about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKurtis Rainbolt-Greene <kurtis@rainbolt-greene.online>2017-04-04 20:39:14 -0700
committerGitHub <noreply@github.com>2017-04-04 20:39:14 -0700
commit0069c01285d7fc6b97220fd678f6e5b82f301b1a (patch)
treeda638ce5acf64fe035e62a2aedff71e04ca0fe62
parentdc5704b0b0c8f5a58ff95d3f3c4055929c6ecfba (diff)
Moving the queue_at into the worker
-rw-r--r--app/workers/push_update_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/push_update_worker.rb b/app/workers/push_update_worker.rb
index 5b5e9f68a..6512e13ad 100644
--- a/app/workers/push_update_worker.rb
+++ b/app/workers/push_update_worker.rb
@@ -7,7 +7,7 @@ class PushUpdateWorker
     account = Account.find(account_id)
     status = Status.find(status_id)
     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)
   end
 end