diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/profile-url | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/profile-url b/bin/profile-url index d8d09641624..9e8585aabba 100755 --- a/bin/profile-url +++ b/bin/profile-url @@ -48,7 +48,7 @@ require File.expand_path('../config/environment', File.dirname(__FILE__)) result = Gitlab::Profiler.profile(options[:url], logger: Logger.new(options[:sql_output]), post_data: options[:post_data], - user: User.find_by_username(options[:username]), + user: UserFinder.new(options[:username]).find_by_username, private_token: ENV['PRIVATE_TOKEN']) printer = RubyProf::CallStackPrinter.new(result) |