Skip to content

Commit 299252c

Browse files
authored
Update mongo driver (#2)
* update mongo driver * update gitignore * add lock
1 parent c2ff756 commit 299252c

File tree

4 files changed

+1455
-6
lines changed

4 files changed

+1455
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules/
1+
node_modules/
2+
.idea

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {MongoClient} = require('mongodb');
1+
const { MongoClient } = require('mongodb');
22
const stream = require('stream');
33
const async = require('async');
44

@@ -20,8 +20,8 @@ function run(opts, cb) {
2020
if(err) {
2121
return cb(err);
2222
}
23-
dbFrom = dbs.dbFrom;
24-
dbTo = dbs.dbTo;
23+
dbFrom = dbs.dbFrom.db();
24+
dbTo = dbs.dbTo.db();
2525
startCopy();
2626
});
2727

0 commit comments

Comments
 (0)