about summary refs log tree commit diff
path: root/app/workers/notification_worker.rb
blob: 1a2faefd8e08da9ad3ccfee4055a4eea08c79641 (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(xml, source_account_id, target_account_id)
    SendInteractionService.new.call(xml, Account.find(source_account_id), Account.find(target_account_id))
  end
end