about summary refs log blame commit diff
path: root/app/workers/removal_worker.rb
blob: 2a1eaa89b061d34b4b4fc7b0d07f04e00d81de2b (plain) (tree)
1
2
3
4
5
6
7
8
9



                             
                                      
                                                                                                 
                                     
     
   
# frozen_string_literal: true

class RemovalWorker
  include Sidekiq::Worker

  def perform(status_id, options = {})
    RemoveStatusService.new.call(Status.with_discarded.find(status_id), **options.symbolize_keys)
  rescue ActiveRecord::RecordNotFound
    true
  end
end