This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-04-03 18:55:06 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DomainBlockWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2019-08-07 20:20:23 +02:00
|
|
|
def perform(domain_block_id, update = false)
|
2020-06-09 10:32:00 +02:00
|
|
|
domain_block = DomainBlock.find_by(id: domain_block_id)
|
|
|
|
return true if domain_block.nil?
|
|
|
|
|
|
|
|
BlockDomainService.new.call(domain_block, update)
|
2017-04-03 18:55:06 +02:00
|
|
|
end
|
|
|
|
end
|