Browse Source

fix level2mongo

activeAddress
Matias Alejo Garcia 10 years ago
parent
commit
1e0c45aefc
  1. 10
      scripts/level2mongo.js

10
scripts/level2mongo.js

@ -10,9 +10,11 @@ var level = new LevelStorage({
var mongo = new MongoStorage();
mongo.connect({
host: 'localhost',
port: '27017'
}, function(err) {
mongoDb: {
uri: 'mongodb://localhost:27017/bws',
}
},
function(err) {
if (err) throw err;
mongo.db.dropDatabase(function(err) {
if (err) throw err;
@ -25,7 +27,7 @@ mongo.connect({
// });
});
});
});
});
function run(cb) {

Loading…
Cancel
Save