Fix how to use PipelinesFinder
This commit is contained in:
parent
44ae99399f
commit
56f50cbb3a
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue