Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/package_files.rb')
-rw-r--r--lib/api/package_files.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/package_files.rb b/lib/api/package_files.rb
index 6d0c1f44a36..79ebf18ff27 100644
--- a/lib/api/package_files.rb
+++ b/lib/api/package_files.rb
@@ -28,7 +28,10 @@ module API
package = ::Packages::PackageFinder
.new(user_project, params[:package_id]).execute
- present paginate(package.package_files), with: ::API::Entities::PackageFile
+ files = package.package_files
+ .preload_pipelines
+
+ present paginate(files), with: ::API::Entities::PackageFile
end
desc 'Remove a package file' do