- Message notify when 'Ask Info' and user is not logged

- Ask Info and Book show message if not logged
- TableField fixed and added some features
This commit is contained in:
Paolo Arena
2019-11-04 20:30:09 +01:00
parent f787fd3cea
commit 9205468065
9 changed files with 90 additions and 16 deletions

View File

@@ -97,11 +97,17 @@ const MyEventSchema = new Schema({
MyEventSchema.statics.findAllIdApp = function (idapp) {
const Event = this;
const myfind = { idapp };
const query = [
{ $match: { idapp } },
{ $sort: { dateTimeStart: 1 } }
];
return Event
.aggregate(query)
.then((arrrec) => {
return arrrec
})
return Event.find(myfind, (err, arrrec) => {
return arrrec
});
};