summaryrefslogtreecommitdiff
path: root/lib/api/project_packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/project_packages.rb')
-rw-r--r--lib/api/project_packages.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/api/project_packages.rb b/lib/api/project_packages.rb
index 0fdaa4b2656..babc7b9dd58 100644
--- a/lib/api/project_packages.rb
+++ b/lib/api/project_packages.rb
@@ -70,7 +70,11 @@ module API
package = ::Packages::PackageFinder
.new(user_project, params[:package_id]).execute
- destroy_conditionally!(package)
+ destroy_conditionally!(package) do |package|
+ if package.destroy
+ package.sync_maven_metadata(current_user)
+ end
+ end
end
end
end