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 @@
const mongoose = require('mongoose');
const mongoose = require('mongoose').set('debug', false)
const Schema = mongoose.Schema;
const tools = require('../tools/general');
@@ -6,6 +6,8 @@ const tools = require('../tools/general');
mongoose.Promise = global.Promise;
mongoose.level = "F";
mongoose.set('debug', false);
// Resolving error Unknown modifier: $pushAll
mongoose.plugin(schema => {
schema.options.usePushEach = true
@@ -77,7 +79,6 @@ module.exports.findAllIdApp = async function (idapp) {
const myfind = { active: true };
return await Site.find(myfind, (err, arrrec) => {
return arrrec
});
return Site.find(myfind);
};