about summary refs log tree commit diff
path: root/app/workers/removal_worker.rb
blob: 2a1eaa89b061d34b4b4fc7b0d07f04e00d81de2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# 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