Fix how to use PipelinesFinder

This commit is contained in:
Shinya Maeda 2017-03-08 17:24:20 +09:00
parent 44ae99399f
commit 56f50cbb3a
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module API
get ':id/pipelines' do
authorize! :read_pipeline, user_project
pipelines = PipelinesFinder.new(user_project, params).execute(scope: params[:scope])
pipelines = PipelinesFinder.new(user_project, params).execute
present paginate(pipelines), with: Entities::PipelineBasic
end

View File

@ -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