mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 10:59:04 +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
|