Browse Source

Fix wrong variable used in publish channel

closed-social-glitch-2
Eugen 7 years ago
committed by GitHub
parent
commit
c9ebd5d19f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/workers/push_update_worker.rb

+ 1
- 1
app/workers/push_update_worker.rb View File

@ -15,7 +15,7 @@ class PushUpdateWorker
scope: InlineRablScope.new(account)
)
Redis.current.publish("timeline:#{timeline_id}", Oj.dump({ event: :update, payload: message, queued_at: (Time.now.to_f * 1000.0).to_i }))
Redis.current.publish("timeline:#{account.id}", Oj.dump({ event: :update, payload: message, queued_at: (Time.now.to_f * 1000.0).to_i }))
rescue ActiveRecord::RecordNotFound
true
end

Loading…
Cancel
Save