about summary refs log tree commit diff
path: root/app/workers/revoke_status_worker.rb
blob: 8cc2b162317fe03075835d05e7d65b940412e5be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RevokeStatusWorker
  include Sidekiq::Worker

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