summaryrefslogtreecommitdiff
path: root/lib/api/v3/pipelines.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/pipelines.rb')
-rw-r--r--lib/api/v3/pipelines.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/pipelines.rb b/lib/api/v3/pipelines.rb
index 82827249244..c48cbd2b765 100644
--- a/lib/api/v3/pipelines.rb
+++ b/lib/api/v3/pipelines.rb
@@ -21,7 +21,7 @@ module API
get ':id/pipelines' do
authorize! :read_pipeline, user_project
- pipelines = PipelinesFinder.new(user_project).execute(scope: params[:scope])
+ pipelines = PipelinesFinder.new(user_project, scope: params[:scope]).execute
present paginate(pipelines), with: ::API::Entities::Pipeline
end
end