diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-06 18:03:30 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-06 18:03:30 +0100 |
commit | f406e01fcf7d69045cf3ad8ea8dea51acd85535b (patch) | |
tree | b1b2c5ac8c44d3b3f4a69e05a707ce641fc4a48a /app/workers | |
parent | 2488162733df7d940e1cb26e5ece534c1078f4c8 (diff) |
Add filters for suspended accounts
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/admin/suspension_worker.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |