about summary refs log tree commit diff
path: root/app/workers/domain_block_worker.rb
blob: 35518d6b5e8c687c42abd21f8eded36385011a6d (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, update = false)
    BlockDomainService.new.call(DomainBlock.find(domain_block_id), update)
  rescue ActiveRecord::RecordNotFound
    true
  end
end