diff options
Diffstat (limited to 'lib/api/project_packages.rb')
-rw-r--r-- | lib/api/project_packages.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/project_packages.rb b/lib/api/project_packages.rb index 43bd15931ef..2aa6858e41d 100644 --- a/lib/api/project_packages.rb +++ b/lib/api/project_packages.rb @@ -15,6 +15,7 @@ module API urgency :low helpers ::API::Helpers::PackagesHelpers + helpers ::API::Helpers::Packages::Npm helpers do def package strong_memoize(:package) do # rubocop:disable Gitlab/StrongMemoizeAttr @@ -133,6 +134,8 @@ module API destroy_conditionally!(package) do |package| ::Packages::MarkPackageForDestructionService.new(container: package, current_user: current_user).execute + + enqueue_sync_metadata_cache_worker(user_project, package.name) if package.npm? end end end |