From f406e01fcf7d69045cf3ad8ea8dea51acd85535b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 6 Dec 2016 18:03:30 +0100 Subject: Add filters for suspended accounts --- app/workers/admin/suspension_worker.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/workers/admin/suspension_worker.rb (limited to 'app/workers') diff --git a/app/workers/admin/suspension_worker.rb b/app/workers/admin/suspension_worker.rb new file mode 100644 index 000000000..38761f3b9 --- /dev/null +++ b/app/workers/admin/suspension_worker.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Admin::SuspensionWorker + include Sidekiq::Worker + + def perform(account_id) + SuspendAccountService.new.call(Account.find(account_id)) + end +end -- cgit