Add filters for suspended accounts
This commit is contained in:
9
app/workers/admin/suspension_worker.rb
Normal file
9
app/workers/admin/suspension_worker.rb
Normal file
@ -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
|
Reference in New Issue
Block a user