domain_clear_media_worker.rb 310 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class DomainClearMediaWorker
  3. include Sidekiq::Worker
  4. sidekiq_options queue: 'pull'
  5. def perform(domain_block_id)
  6. domain_block = DomainBlock.find_by(id: domain_block_id)
  7. return true if domain_block.nil?
  8. ClearDomainMediaService.new.call(domain_block)
  9. end
  10. end