diff options
Diffstat (limited to 'app/finders/packages/npm/package_finder.rb')
-rw-r--r-- | app/finders/packages/npm/package_finder.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/finders/packages/npm/package_finder.rb b/app/finders/packages/npm/package_finder.rb index a367fda37de..953e8299138 100644 --- a/app/finders/packages/npm/package_finder.rb +++ b/app/finders/packages/npm/package_finder.rb @@ -21,7 +21,11 @@ module Packages return result unless @last_of_each_version - result.last_of_each_version + if Feature.enabled?(:npm_allow_packages_in_multiple_projects) + Packages::Package.id_in(result.last_of_each_version_ids) + else + result.last_of_each_version + end end private |