blob: a61d0e349ceaaf99e9382742da7c01fe5a1d4285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# 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
|