This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-03 09:55:06 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DomainBlockWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2019-08-07 11:20:23 -07:00
|
|
|
def perform(domain_block_id, update = false)
|
|
|
|
BlockDomainService.new.call(DomainBlock.find(domain_block_id), update)
|
2017-04-03 09:55:06 -07:00
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|