fix level2mongo
This commit is contained in:
parent
25cbf5ddbd
commit
1e0c45aefc
|
@ -10,9 +10,11 @@ var level = new LevelStorage({
|
||||||
|
|
||||||
var mongo = new MongoStorage();
|
var mongo = new MongoStorage();
|
||||||
mongo.connect({
|
mongo.connect({
|
||||||
host: 'localhost',
|
mongoDb: {
|
||||||
port: '27017'
|
uri: 'mongodb://localhost:27017/bws',
|
||||||
}, function(err) {
|
}
|
||||||
|
},
|
||||||
|
function(err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
mongo.db.dropDatabase(function(err) {
|
mongo.db.dropDatabase(function(err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
@ -25,7 +27,7 @@ mongo.connect({
|
||||||
// });
|
// });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function run(cb) {
|
function run(cb) {
|
||||||
|
|
Loading…
Reference in New Issue