Disabled debug Mongoose
Updated modules fixed tests
This commit is contained in:
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user