about summary refs log tree commit diff
path: root/app/workers/admin/suspension_worker.rb
blob: ae8b24d8c3e34823caf1cbfc0ab2b7c083d6cb5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class Admin::SuspensionWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'pull'

  def perform(account_id, remove_user = false)
    SuspendAccountService.new.call(Account.find(account_id), including_user: remove_user)
  end
end