about summary refs log tree commit diff
path: root/app/workers/admin/suspension_worker.rb
blob: e41465ccca02223ec367ec8dd60868417a20933c (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), remove_user: remove_user)
  end
end