mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-11-01 06:31:12 +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
|