gitlab-org--gitlab-foss/app/workers/delete_user_worker.rb
2016-03-15 21:09:25 +01:00

10 lines
298 B
Ruby

class DeleteUserWorker
include Sidekiq::Worker
def perform(current_user_id, delete_user_id, options = {})
delete_user = User.find(delete_user_id)
current_user = User.find(current_user_id)
DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys)
end
end