Commit ee6ae02b authored by Stan Hu's avatar Stan Hu

Merge branch 'use-ci-auth-finder-to-search-for-jobs' into 'master'

Fix inconsistencies between finding jobs by tokens

See merge request gitlab-org/gitlab!42828
parents 4b504073 d98978ef
......@@ -371,7 +371,7 @@ module Gitlab
end
def find_build_by_token(token)
::Ci::Build.running.find_by_token(token)
::Ci::AuthJobFinder.new(token: token).execute
end
def user_auth_attempt!(user, success:)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment