Skip to content

Commit

Permalink
Merge pull request #1478 from jpwhite4/version_up
Browse files Browse the repository at this point in the history
Update the various dependencies for the nodejs etl.
  • Loading branch information
jpwhite4 authored Mar 30, 2021
2 parents aecd013 + cfc330f commit 49eeeff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion etl/js/lib/dataset_processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,13 @@ DatasetProcessor.prototype.process = function (totalCores, coreIndex) {
var self = this;
var multiCore = totalCores !== undefined && coreIndex !== undefined;
if (this.dataset.input.dbEngine == 'mongodb') {
MongoClient.connect(self.dataset.input.config.uri, { useNewUrlParser: true }, function (err, client) {
MongoClient.connect(
self.dataset.input.config.uri,
{
useNewUrlParser: true,
useUnifiedTopology: true
},
function (err, client) {
if (err) {
self.emit("error", self.dataset.name + ': ' + "MongoClient Open Error: " + util.inspect(err));
self._processEnded = true;
Expand Down
10 changes: 5 additions & 5 deletions etl/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"cloneextend": "0.0.x",
"ini": "1.3.x",
"glob": "7.1.x",
"mongodb": "3.1.x",
"mysql": "2.17.x",
"tv4": "^1.0.13",
"winston": "3.1.0"
"mongodb": "3.6.x",
"mysql": "2.18.x",
"tv4": "1.3.x",
"winston": "3.3.x"
},
"engine": "node >= 0.10.25"
"engine": "node >= 6.17.1"
}

0 comments on commit 49eeeff

Please sign in to comment.