- Send email when new subscriber to the newsletter

This commit is contained in:
Paolo Arena
2019-11-01 19:59:31 +01:00
parent 93ccc73517
commit f787fd3cea
8 changed files with 92 additions and 22 deletions

View File

@@ -34,6 +34,9 @@ var UserSchema = new mongoose.Schema({
message: '{VALUE} is not a valid email'
}*/
},
cell: {
type: String,
},
idapp: {
type: String,
required: true,
@@ -359,7 +362,7 @@ UserSchema.statics.getUsersListByParams = function (params) {
*/
UserSchema.statics.getFieldsForSearch = function () {
return ['name', 'surname', 'email']
return ['name', 'surname', 'email', 'cell']
};
UserSchema.statics.executeQueryTable = function (idapp, params) {