Delete statuses asynchronously but provide instant feedback in the API
This commit is contained in:
9
app/workers/removal_worker.rb
Normal file
9
app/workers/removal_worker.rb
Normal file
@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemovalWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id)
|
||||
RemoveStatusService.new.call(Status.find(status_id))
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user