summaryrefslogtreecommitdiff
path: root/src/api/endpoints/users/search.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-28 17:05:36 +0900
committerGitHub <noreply@github.com>2018-03-28 17:05:36 +0900
commit46e530ef41bb640cfa66438e888d1ecd6f90f6bb (patch)
treea23eefae5e437ad6adc7dfe190daba81138aa70b /src/api/endpoints/users/search.ts
parent#1294 (diff)
parentoops (diff)
downloadmisskey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.gz
misskey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.bz2
misskey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.zip
Merge pull request #1324 from syuilo/#1288-2
snake_case を camelCase にするなどした
Diffstat (limited to 'src/api/endpoints/users/search.ts')
-rw-r--r--src/api/endpoints/users/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/users/search.ts b/src/api/endpoints/users/search.ts
index 39e2ff9890..1cc25e61b8 100644
--- a/src/api/endpoints/users/search.ts
+++ b/src/api/endpoints/users/search.ts
@@ -41,7 +41,7 @@ async function byNative(res, rej, me, query, offset, max) {
const users = await User
.find({
$or: [{
- username_lower: new RegExp(escapedQuery.replace('@', '').toLowerCase())
+ usernameLower: new RegExp(escapedQuery.replace('@', '').toLowerCase())
}, {
name: new RegExp(escapedQuery)
}]