- Downline User
- Not registered if already exists. - Forgot Password
This commit is contained in:
@@ -167,6 +167,28 @@ ExtraListSchema.statics.getUsersList = function (idapp) {
|
||||
|
||||
};
|
||||
|
||||
ExtraListSchema.statics.getDownlineNotRegisteredByNameSurname = function (idapp, nameandsurname) {
|
||||
const ExtraList = this;
|
||||
|
||||
return ExtraList.find({
|
||||
'aportador_solidario_name_surname': nameandsurname,
|
||||
registered: false,
|
||||
}, {
|
||||
username: 1,
|
||||
name: 1,
|
||||
surname: 1,
|
||||
verified_email: 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.saw_zoom_presentation': 1,
|
||||
made_gift: 1,
|
||||
email: 1,
|
||||
date_reg: 1,
|
||||
img: 1
|
||||
}, (err, arrrec) => {
|
||||
return arrrec
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
ExtraListSchema.statics.getFieldsForSearch = function () {
|
||||
return ['username', 'name', 'surname', 'cell_complete', 'aportador_solidario_name_surname', 'aportador_solidario_originale_name_surname']
|
||||
|
||||
Reference in New Issue
Block a user