mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 08:02:45 +08:00
9 lines
189 B
Ruby
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
|