discourse/app/jobs/regular/send_push_notification.rb

9 lines
189 B
Ruby

module Jobs
class SendPushNotification < Jobs::Base
def execute(args)
user = User.find(args[:user_id])
PushNotificationPusher.push(user, args[:payload])
end
end
end