Skip to content

Commit

Permalink
Update mongo driver (#2)
Browse files Browse the repository at this point in the history
* update mongo driver

* update gitignore

* add lock
  • Loading branch information
mpushkin authored Jan 22, 2020
1 parent c2ff756 commit 299252c
Show file tree
Hide file tree
Showing 4 changed files with 1,455 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
node_modules/
.idea
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {MongoClient} = require('mongodb');
const { MongoClient } = require('mongodb');
const stream = require('stream');
const async = require('async');

Expand All @@ -20,8 +20,8 @@ function run(opts, cb) {
if(err) {
return cb(err);
}
dbFrom = dbs.dbFrom;
dbTo = dbs.dbTo;
dbFrom = dbs.dbFrom.db();
dbTo = dbs.dbTo.db();
startCopy();
});

Expand Down
Loading

0 comments on commit 299252c

Please sign in to comment.