- Statistiche
- Menu e Sottomenu - Lista ultimi Movimenti
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user