mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Try to fix EasySearch syntax.
Thanks to xet7 !
This commit is contained in:
parent
6f864c5022
commit
5ca84d2930
3 changed files with 4 additions and 5 deletions
|
@ -537,10 +537,9 @@ Users.allow({
|
|||
|
||||
// Search a user in the complete server database by its name, username or emails adress. This
|
||||
// is used for instance to add a new user to a board.
|
||||
const searchInFields = ['username', 'profile.fullname', 'emails.address'];
|
||||
Users.search_index = new Index({
|
||||
UserSearchIndex = new Index({
|
||||
collection: Users,
|
||||
fields: searchInFields,
|
||||
fields: ['username', 'profile.fullname', 'emails.address'],
|
||||
engine: new MongoDBEngine(),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue