Pagina con i link dei Canali territoriali di RISO
Lista Tabelle "Aggiungi" da errore userId... Aggiunto "Servizi" e alcune sue sottocategorie Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
@@ -2076,9 +2076,17 @@ UserSchema.statics.SetTelegramIdSuccess = async function(idapp, id, teleg_id) {
|
||||
idapp,
|
||||
_id: id,
|
||||
}, {$set: fields_to_update}, {new: false}).lean().then((record) => {
|
||||
return record;
|
||||
|
||||
if (record) {
|
||||
return User.findOne({
|
||||
idapp,
|
||||
_id: id
|
||||
}).lean();
|
||||
}
|
||||
});
|
||||
|
||||
return null;
|
||||
|
||||
};
|
||||
|
||||
UserSchema.statics.setUsernameTelegram = async function(
|
||||
|
||||
Reference in New Issue
Block a user