From 3dc70b3ea4d49bccb10d4f2b3e317c794da91e37 Mon Sep 17 00:00:00 2001 From: Xavier Priour Date: Fri, 13 Nov 2015 12:35:41 +0100 Subject: Import members: UI flow ok --- models/users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'models') 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 }); -- cgit v1.2.3-1-g7c22