Browse Source

Merge pull request #528 from carlosfaria94/patch-1

Update storage.js
activeAddress
Ivan Socolsky 9 years ago
parent
commit
79f1d6156d
  1. 4
      lib/storage.js

4
lib/storage.js

@ -87,12 +87,12 @@ Storage.prototype.connect = function(opts, cb) {
var config = opts.mongoDb || {};
mongodb.MongoClient.connect(config.uri, function(err, db) {
if (err) {
log.error('Unable to connect to the mongoDB server on ', config.uri);
log.error('Unable to connect to the mongoDB. Check the credentials.');
return cb(err);
}
self.db = db;
self._createIndexes();
console.log('Connection established to ', config.uri);
console.log('Connection established to mongoDB');
return cb();
});
};

Loading…
Cancel
Save