Aggiunto comune, + filtro regione e provincia
aggiunto Visibilità (da fare check)
This commit is contained in:
@@ -2642,6 +2642,16 @@ UserSchema.statics.SetTelegramIdSuccess = async function(idapp, id, teleg_id) {
|
||||
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsernameTelegram = async function(idapp, username) {
|
||||
const User = this;
|
||||
return await User.findOne({idapp, username}, {'profile.username_telegram': 1}).lean().then((ris) => {
|
||||
if (ris)
|
||||
return ris.profile.username_telegram
|
||||
else
|
||||
return '';
|
||||
});
|
||||
};
|
||||
|
||||
UserSchema.statics.setUsernameTelegram = async function(
|
||||
idapp, id, username_telegram, firstname_telegram, lastname_telegram) {
|
||||
const User = this;
|
||||
|
||||
Reference in New Issue
Block a user