diff options
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index b35104ec..60cab56d 100644 --- a/models/users.js +++ b/models/users.js @@ -2,12 +2,14 @@ Users = Meteor.users; // Search a user in the complete server database by its name or username. This // is used for instance to add a new user to a board. -const searchInFields = ['username', 'profile.name']; +const searchInFields = ['username', 'profile.fullname']; Users.initEasySearch(searchInFields, { use: 'mongo-db', returnFields: [...searchInFields, 'profile.avatarUrl'], }); + + Users.helpers({ boards() { return Boards.find({ userId: this._id }); |