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:
parent
f1408feafb
commit
5375cab3df
28 changed files with 14 additions and 14 deletions
2
db.js
2
db.js
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue