removal_worker.rb (217B)
- # 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
git clone https://hacktivis.me/git/mastofe.git
removal_worker.rb (217B)
- # 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