mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 20:43:42 +01:00
11 lines
217 B
Ruby
11 lines
217 B
Ruby
# 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
|