0
0
Fork 0

Delete statuses asynchronously but provide instant feedback in the API

This commit is contained in:
Eugen Rochko 2016-11-29 15:32:25 +01:00
parent 5973ca3d11
commit 93a90cd9c3
2 changed files with 16 additions and 3 deletions

View 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