- added Aportador Solidario to registration

- added email_paypal and username_telegram
This commit is contained in:
Paolo Arena
2019-12-29 01:53:51 +01:00
parent 0c91e6ce0b
commit 8fd04d3b1c
3 changed files with 19 additions and 6 deletions

View File

@@ -34,9 +34,6 @@ var UserSchema = new mongoose.Schema({
message: '{VALUE} is not a valid email'
}*/
},
cell: {
type: String,
},
idapp: {
type: String,
required: true,
@@ -111,6 +108,9 @@ var UserSchema = new mongoose.Schema({
news_on: {
type: Boolean
},
aportador_solidario: {
type: String,
},
profile: {
img: {
type: String
@@ -118,6 +118,12 @@ var UserSchema = new mongoose.Schema({
cell: {
type: String
},
email_paypal: {
type: String
},
username_telegram: {
type: String
},
dateofbirth: {
type: Date,
},
@@ -376,7 +382,7 @@ UserSchema.statics.getUsersListByParams = function (params) {
*/
UserSchema.statics.getFieldsForSearch = function () {
return ['name', 'surname', 'email', 'cell']
return ['name', 'surname', 'email', 'profile.cell', 'profile.email_paypal', 'profile.username_telegram', 'aportador_solidario']
};
UserSchema.statics.executeQueryTable = function (idapp, params) {