diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index f257d5c..d9bf022 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -45,7 +45,8 @@ var Provider = exports.Provider = function (options) { this.add(options.store.name || options.store.type, options.store); } else if (options.stores) { - Object.keys(options.stores).forEach(function (store) { + Object.keys(options.stores).forEach(function (name) { + var store = options.stores[name]; self.add(store.name || store.type, store); }); }