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

class DomainBlockWorker
  include Sidekiq::Worker

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