2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-04 18:31:48 -04:00
|
|
|
module Jobs
|
|
|
|
class SendPushNotification < Jobs::Base
|
|
|
|
def execute(args)
|
2018-05-17 03:22:01 -04:00
|
|
|
user = User.find_by(id: args[:user_id])
|
|
|
|
PushNotificationPusher.push(user, args[:payload]) if user
|
2018-05-04 18:31:48 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|