This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-11-29 15:32:25 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class RemovalWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
def perform(status_id)
|
|
|
|
RemoveStatusService.new.call(Status.find(status_id))
|
2016-12-19 09:31:12 +01:00
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
2016-11-29 15:32:25 +01:00
|
|
|
end
|
2016-12-11 22:23:11 +01:00
|
|
|
end
|