Class: TentD::Notifications::TriggerWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/tentd/notifications/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#perform(msg) ⇒ Object



13
14
15
# File 'lib/tentd/notifications/sidekiq.rb', line 13

def perform(msg)
  Model::NotificationSubscription.notify_all(msg['type'], msg['post_id'])
end