mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
9 lines
204 B
Ruby
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
|