about summary refs log tree commit diff
path: root/app/workers/local_notification_worker.rb
blob: 748270563c532a73f1ebf6bf3d7dff253d1e2ebb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class LocalNotificationWorker
  include Sidekiq::Worker

  def perform(mention_id)
    mention = Mention.find(mention_id)
    NotifyService.new.call(mention.account, mention)
  rescue ActiveRecord::RecordNotFound
    true
  end
end