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

class NotificationWorker
  include Sidekiq::Worker

  sidekiq_options retry: 5

  def perform(stream_entry_id, target_account_id)
    SendInteractionService.new.call(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
  end
end