Fix wrong variable used in publish channel

lolsob-rspec
Eugen 2017-04-05 18:58:32 +02:00 committed by GitHub
parent b9ddfff8f6
commit 54329947ab
1 changed files with 1 additions and 1 deletions

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