~cytrogen/masto-fe

ref: 152b10b6246987bfb2cc73ecd2a20578d05b62dc masto-fe/app/workers/domain_block_worker.rb -rw-r--r-- 291 bytes
152b10b6 — Christian Schmidt Fix some React warnings (#26609) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class DomainBlockWorker
  include Sidekiq::Worker

  def perform(domain_block_id, update = false)
    domain_block = DomainBlock.find_by(id: domain_block_id)
    return true if domain_block.nil?

    BlockDomainService.new.call(domain_block, update)
  end
end