Commit 812f182a authored by Tetiana Chupryna's avatar Tetiana Chupryna

Use new method name

parent 2e5dc94a
......@@ -40,7 +40,7 @@ module Projects
end
def pipeline
@pipeline ||= project.all_pipelines.latest_successful_for(project.default_branch)
@pipeline ||= project.all_pipelines.latest_successful_for_ref(project.default_branch)
end
def query_params
......
......@@ -4,7 +4,7 @@ module API
class Dependencies < Grape::API
helpers do
def dependencies_by(params)
pipeline = user_project.all_pipelines.latest_successful_for(user_project.default_branch)
pipeline = user_project.all_pipelines.latest_successful_for_ref(user_project.default_branch)
return [] unless pipeline
......
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