1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-04 17:58:44 +09:00
whippy-edition/app/workers/push_notification_worker.rb
2017-01-29 01:30:32 +01:00

12 lines
252 B
Ruby

# frozen_string_literal: true
class PushNotificationWorker
include Sidekiq::Worker
def perform(notification_id)
SendPushNotificationService.new.call(Notification.find(notification_id))
rescue ActiveRecord::RecordNotFound
true
end
end