- Statistiche

- Menu e Sottomenu
- Lista ultimi Movimenti
This commit is contained in:
Surya Paolo
2024-09-26 02:14:33 +02:00
parent ca519baad4
commit ce51c87365
13 changed files with 45558 additions and 64 deletions

View File

@@ -130,7 +130,13 @@ const MyPageSchema = new Schema({
},
showFooter: {
type: Boolean,
}
},
mainMenu: {
type: Boolean,
},
sottoMenu: [{
type: String
}],
});
MyPageSchema.statics.getFieldsForSearch = function () {
@@ -169,10 +175,11 @@ MyPageSchema.statics.findOnlyStruttRec = async function (idapp) {
});
const arrfixed = await MyPage.find(
{ idapp,
{
idapp,
$or: [
{loadFirst: {$exists: false}},
{loadFirst: {$exists: true, $eq: false}}],
{ loadFirst: { $exists: false } },
{ loadFirst: { $exists: true, $eq: false } }],
}
, {
title: 1,
@@ -190,6 +197,8 @@ MyPageSchema.statics.findOnlyStruttRec = async function (idapp) {
iconsize: 1,
extraclass: 1,
loadFirst: 1,
mainMenu: 1,
sottoMenu: 1,
}, (err, arrrec) => {
return arrrec
});