Disabled debug Mongoose

Updated modules
fixed tests
This commit is contained in:
Paolo Arena
2021-09-22 01:13:41 +02:00
parent 10e9da805e
commit 396bfea289
73 changed files with 2831 additions and 2853 deletions

View File

@@ -1,4 +1,4 @@
var mongoose = require('mongoose');
var mongoose = require('mongoose').set('debug', false)
mongoose.Promise = global.Promise;
@@ -43,7 +43,7 @@ const db = mongoose.connection;
// mongoose.connect(process.env.MONGODB_URI + '?authSource=admin', { options })
console.log(' -> PASSAGGIO PARAMETRI MONGOOSE')
// console.log(' -> PASSAGGIO PARAMETRI MONGOOSE')
mongoose.connect(process.env.MONGODB_URI, options);
db.on('error', console.error.bind(console, 'connection error:'));