summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/users
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-29 21:45:43 +0900
committerGitHub <noreply@github.com>2018-03-29 21:45:43 +0900
commit228d3141a705eeb8e2cef9b5ca9824268206ef57 (patch)
treed5a7554421d4f34d375ab0f8f223238fc58aaecd /src/server/api/endpoints/users
parentUpdate show.ts (diff)
downloadsharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.tar.gz
sharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.tar.bz2
sharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.zip
Update show.ts
Diffstat (limited to 'src/server/api/endpoints/users')
-rw-r--r--src/server/api/endpoints/users/show.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts
index fb6996e2ea..fd51d386b8 100644
--- a/src/server/api/endpoints/users/show.ts
+++ b/src/server/api/endpoints/users/show.ts
@@ -66,7 +66,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
// Get 'host' parameter
const [host, hostErr] = $(params.host).optional.string().$;
- if (hostErr) return rej('invalid username param');
+ if (hostErr) return rej('invalid host param');
if (userId === undefined && typeof username !== 'string') {
return rej('userId or pair of username and host is required');