"Autoprodotto": metterlo come campo e filtro a parte ??
Se non hai l'USERNAME TELEGRAM presente, allora il BOT ti deve dire come fare per impostarlo. Creare una Chat di Help Supporto Tecnico
This commit is contained in:
@@ -598,6 +598,8 @@ UserSchema.statics.findByUsername = async function(idapp, username, alsoemail) {
|
||||
const myreg = ['^', username, '$'].join('');
|
||||
let regexusername = new RegExp(myreg, 'i');
|
||||
|
||||
//++TODO: Set only the necessary fields to get in memory
|
||||
|
||||
return User.findOne({
|
||||
idapp: idapp,
|
||||
username: {$regex: regexusername},
|
||||
|
||||
Reference in New Issue
Block a user