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 ...@@ -371,7 +371,7 @@ module Gitlab
end end
def find_build_by_token(token) def find_build_by_token(token)
::Ci::Build.running.find_by_token(token) ::Ci::AuthJobFinder.new(token: token).execute
end end
def user_auth_attempt!(user, success:) 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