- added Aportador Solidario to registration
- added email_paypal and username_telegram
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user