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.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/project_packages.rb b/lib/api/project_packages.rb
index 35a68ec4e18..54c0a0628a7 100644
--- a/lib/api/project_packages.rb
+++ b/lib/api/project_packages.rb
@@ -71,9 +71,7 @@ module API
.new(user_project, params[:package_id]).execute
destroy_conditionally!(package) do |package|
- if package.destroy
- package.sync_maven_metadata(current_user)
- end
+ ::Packages::DestroyPackageService.new(container: package, current_user: current_user).execute
end
end
end