New MeshAgents, MeshCtrl fix

This commit is contained in:
Ylian Saint-Hilaire
2019-09-20 15:20:59 -07:00
parent 9de07f0962
commit d470944b8d
28 changed files with 14 additions and 14 deletions

2
db.js
View File

@@ -206,7 +206,7 @@ module.exports.CreateDB = function (parent, func) {
if (parent.args.mongodb) {
// Use MongoDB
obj.databaseType = 3;
require('mongodb').MongoClient.connect(parent.args.mongodb, { useNewUrlParser: true }, function (err, client) {
require('mongodb').MongoClient.connect(parent.args.mongodb, { useNewUrlParser: true, useUnifiedTopology: true }, function (err, client) {
if (err != null) { console.log("Unable to connect to database: " + err); process.exit(); return; }
Datastore = client;