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

class DomainBlockWorker
  include Sidekiq::Worker

  def perform(domain_block_id)
    domain_block = DomainBlock.find(domain_block_id.to_i)
    BlockDomainService.new.call(domain_block)
  rescue ActiveRecord::RecordNotFound
    true
  end
end