blob: 14423a4fb569bb423a88bfb1312303a1ae5a912f (
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.find(status_id), **options.symbolize_keys)
rescue ActiveRecord::RecordNotFound
true
end
end
|