mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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:
committed by
Matteo Pagliazzi
parent
2741721161
commit
dfd79c9c1a
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user