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

class DomainUnblockWorker
  include Sidekiq::Worker

  sidekiq_options unique: :until_executed

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