diff options
Diffstat (limited to 'lib/api/package_files.rb')
-rw-r--r-- | lib/api/package_files.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/package_files.rb b/lib/api/package_files.rb index 7ff49f326d9..6a02769519f 100644 --- a/lib/api/package_files.rb +++ b/lib/api/package_files.rb @@ -14,6 +14,7 @@ module API urgency :low helpers ::API::Helpers::PackagesHelpers + helpers ::API::Helpers::Packages::Npm params do requires :id, types: [String, Integer], desc: 'ID or URL-encoded path of the project' @@ -70,6 +71,8 @@ module API destroy_conditionally!(package_file) do |package_file| package_file.pending_destruction! + + enqueue_sync_metadata_cache_worker(user_project, package.name) if package.npm? end end end |