BigW Consortium Gitlab

delete_user_worker.rb 298 Bytes
Newer Older
1 2 3
class DeleteUserWorker
  include Sidekiq::Worker

4
  def perform(current_user_id, delete_user_id, options = {})
5 6 7
    delete_user  = User.find(delete_user_id)
    current_user = User.find(current_user_id)

8
    DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys)
9 10
  end
end