Fix for Server Discovery and Monitoring engine Deprecation Warning
This commit is contained in:
+1
-1
@@ -266,7 +266,7 @@ function get_market_data(market, cb) {
|
||||
module.exports = {
|
||||
// initialize DB
|
||||
connect: function(database, cb) {
|
||||
mongoose.connect(database, { useNewUrlParser: true, useCreateIndex: true }, function(err) {
|
||||
mongoose.connect(database, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true }, function(err) {
|
||||
if (err) {
|
||||
console.log('Unable to connect to database: %s', database);
|
||||
console.log('Aborting');
|
||||
|
||||
Reference in New Issue
Block a user