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





                                                        
                                     
     
   
# frozen_string_literal: true

class RemovalWorker
  include Sidekiq::Worker

  def perform(status_id)
    RemoveStatusService.new.call(Status.find(status_id))
  rescue ActiveRecord::RecordNotFound
    true
  end
end