This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/jobs/regular/send_push_notification.rb
T

9 lines
204 B
Ruby

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