2017-04-04 01:55:06 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DomainBlockWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2019-08-08 03:20:23 +09:00
|
|
|
def perform(domain_block_id, update = false)
|
2020-06-09 17:32:00 +09:00
|
|
|
domain_block = DomainBlock.find_by(id: domain_block_id)
|
|
|
|
return true if domain_block.nil?
|
|
|
|
|
|
|
|
BlockDomainService.new.call(domain_block, update)
|
2017-04-04 01:55:06 +09:00
|
|
|
end
|
|
|
|
end
|