1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

New MeshAgents, MeshCtrl fix

This commit is contained in:
Ylian Saint-Hilaire 2019-09-20 15:20:59 -07:00
parent f1408feafb
commit 5375cab3df
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;