++ su "Friends" la ricerca per username Telegram e nome e cognome
This commit is contained in:
@@ -3133,11 +3133,22 @@ UserSchema.statics.getFieldsForSearch = function () {
|
||||
};
|
||||
|
||||
UserSchema.statics.getFieldsForSearchUserFriend = function () {
|
||||
return [{ field: 'username', type: tools.FieldType.exact }];
|
||||
return [
|
||||
{ field: 'username', type: tools.FieldType.exact },
|
||||
{ field: 'profile.username_telegram', type: tools.FieldType.string },
|
||||
{ field: 'name', type: tools.FieldType.string },
|
||||
{ field: 'surname', type: tools.FieldType.string },
|
||||
];
|
||||
};
|
||||
|
||||
UserSchema.statics.getFieldsForSearchUserFriend_AllWords = function () {
|
||||
return [{ field: 'username', type: tools.FieldType.string }];
|
||||
return [
|
||||
{ field: 'username', type: tools.FieldType.string },
|
||||
{ field: 'profile.username_telegram', type: tools.FieldType.string },
|
||||
{ field: 'name', type: tools.FieldType.string },
|
||||
{ field: 'surname', type: tools.FieldType.string },
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
UserSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
|
||||
Reference in New Issue
Block a user