- Delete Event with ask confirmation

- Fix dateStart only 1 view if is the same day
- Sending a message from the Event Page: to a user or to a "Event"
- Add button "Ask Info"
- Starting view msg into the messagepopup component
This commit is contained in:
Paolo Arena
2019-10-24 23:30:45 +02:00
parent 51ca2da45f
commit c8c4f57d16
10 changed files with 211 additions and 90 deletions

View File

@@ -54,6 +54,14 @@ const OperatorSchema = new Schema({
},
});
OperatorSchema.statics.getEmailByUsername = async function (idapp, username) {
const Operator = this;
return await Operator.findOne({idapp, username}, (err, arrrec) => {
return (arrrec) ? arrrec.email : '';
});
};
OperatorSchema.statics.executeQueryTable = function (idapp, params) {
return tools.executeQueryTable(this, idapp, params);
};