diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 19:46:28 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 19:46:28 +0200 |
commit | d13d169922c7efeb6e6c20ef6a271eeda552275f (patch) | |
tree | 297367867dfee6a584bcd16d631a2f8714ddfd80 /app/services/notify_service.rb | |
parent | 29ffe1cad3f473c7b6c0b651d065f8ed9373d37e (diff) | |
parent | 5b95be1c42ba69c9a3a79cfa990c80a5f2debfc6 (diff) |
Merge branch 'krainboltgreene-broadcast-to-worker'
Diffstat (limited to 'app/services/notify_service.rb')
-rw-r--r-- | app/services/notify_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb index 24486f220..62508a049 100644 --- a/app/services/notify_service.rb +++ b/app/services/notify_service.rb @@ -50,7 +50,7 @@ class NotifyService < BaseService def create_notification @notification.save! return unless @notification.browserable? - FeedManager.instance.broadcast(@recipient.id, event: 'notification', payload: FeedManager.instance.inline_render(@recipient, 'api/v1/notifications/show', @notification)) + Redis.current.publish(@recipient.id, Oj.dump(event: :notification, payload: InlineRenderer.render(@notification, @recipient, 'api/v1/notifications/show'))) end def send_email |