VERSIONE 0.3.3: RISO:
"RISO.APP alla fine copiare la cartella upload di insiemesipuo.app in riso.app" Corretto BOT Menu Altre sistemazioni (idShippings)
This commit is contained in:
@@ -2247,7 +2247,8 @@ UserSchema.statics.getUsersTelegALL = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
if (!!username) {
|
||||
return User.find({idapp, username, 'profile.teleg_id': {$gt: 0}}).
|
||||
return User.find({idapp, username, 'profile.teleg_id': {$gt: 0}})
|
||||
.lean()
|
||||
then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).
|
||||
@@ -2256,6 +2257,7 @@ UserSchema.statics.getUsersTelegALL = async function(idapp, username) {
|
||||
});
|
||||
} else {
|
||||
return User.find({idapp, 'profile.teleg_id': {$gt: 0}}).
|
||||
lean().
|
||||
then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).
|
||||
@@ -2340,7 +2342,8 @@ UserSchema.statics.getFieldsForSearch = function() {
|
||||
{field: 'profile.revolut', type: tools.FieldType.string},
|
||||
{field: 'profile.link_payment', type: tools.FieldType.string},
|
||||
{field: 'profile.teleg_id', type: tools.FieldType.number},
|
||||
{field: 'profile.username_telegram', type: tools.FieldType.string}
|
||||
{field: 'profile.username_telegram', type: tools.FieldType.string},
|
||||
{field: 'ipaddr', type: tools.FieldType.string}
|
||||
];
|
||||
//{field: 'aportador_solidario', type: tools.FieldType.string}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user