block_worker.rb 221 B

123456789
  1. # frozen_string_literal: true
  2. class BlockWorker
  3. include Sidekiq::Worker
  4. def perform(account_id, target_account_id)
  5. AfterBlockService.new.call(Account.find(account_id), Account.find(target_account_id))
  6. end
  7. end