diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-29 15:32:25 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-29 15:32:25 +0100 |
commit | 93a90cd9c364680cfcc4c1d1ada13efed233e5bd (patch) | |
tree | 58f1444eeb9daa829b971fade2b9c0343c37e825 /app/workers | |
parent | 5973ca3d111e65385299d47b6b82df48a0a5f67b (diff) |
Delete statuses asynchronously but provide instant feedback in the API
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/removal_worker.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/removal_worker.rb b/app/workers/removal_worker.rb new file mode 100644 index 000000000..7470c54f5 --- /dev/null +++ b/app/workers/removal_worker.rb @@ -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 \ No newline at end of file |