Use username in challenge member dropdown (#11478)

* update challenge member dropdown and api to display and search by username rather than display name

* remove accidental whitespace

* fix api test
This commit is contained in:
Adam Fitzgibbon
2019-11-01 13:00:42 -05:00
committed by Matteo Pagliazzi
parent 2741721161
commit dfd79c9c1a
3 changed files with 7 additions and 7 deletions

View File

@@ -330,7 +330,7 @@ function _getMembersForItem (type) {
}
if (req.query.search) {
query['profile.name'] = { $regex: req.query.search };
query['auth.local.username'] = { $regex: req.query.search };
}
} else if (type === 'group-members') {
if (group.type === 'guild') {