0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix search not work for multiple storage

This commit is contained in:
Meeeeow 2017-04-20 23:33:43 +08:00
parent ea4f8474c1
commit 13d653e4dd

View file

@ -480,7 +480,7 @@ Storage.prototype._each_package = function (on_package, on_end) {
storages[self.config.storage] = true
if (self.config.packages) {
Object.keys(self.packages || {}).map(function (pkg) {
Object.keys(self.config.packages || {}).map(function (pkg) {
if (self.config.packages[pkg].storage) {
storages[self.config.packages[pkg].storage] = true
}