mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Merge pull request #11069 from randi2kewl/11047-hall-search-case-insensitive
Fixes #11047 Hall search case insensitive
This commit is contained in:
@@ -175,7 +175,7 @@ api.getHero = {
|
||||
if (validator.isUUID(heroId)) {
|
||||
query = {_id: heroId};
|
||||
} else {
|
||||
query = {'auth.local.username': heroId};
|
||||
query = {'auth.local.lowerCaseUsername': heroId.toLowerCase()};
|
||||
}
|
||||
|
||||
const hero = await User
|
||||
|
||||
Reference in New Issue
Block a user