Commit d98978ef authored by Marius Bobin's avatar Marius Bobin

Fix inconsistencies between finding jobs by tokens

parent 989d53d3
......@@ -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