summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/app/show.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-05 23:36:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-05 23:36:07 +0900
commit11439afde76015b80e8d2e680808161cbc1800d5 (patch)
tree8888a7c3f9a209b57ca2ebd327e624a69f0b2130 /src/server/api/endpoints/app/show.ts
parentwip (diff)
downloadmisskey-11439afde76015b80e8d2e680808161cbc1800d5.tar.gz
misskey-11439afde76015b80e8d2e680808161cbc1800d5.tar.bz2
misskey-11439afde76015b80e8d2e680808161cbc1800d5.zip
wip
Diffstat (limited to 'src/server/api/endpoints/app/show.ts')
-rw-r--r--src/server/api/endpoints/app/show.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/app/show.ts b/src/server/api/endpoints/app/show.ts
index 2b98a3f142..982c87c4ec 100644
--- a/src/server/api/endpoints/app/show.ts
+++ b/src/server/api/endpoints/app/show.ts
@@ -39,11 +39,11 @@ module.exports = (params: any, user: ILocalUser, app: IApp) => new Promise(async
const isSecure = user != null && app == null;
// Get 'appId' parameter
- const [appId, appIdErr] = $.type(ID).optional().get(params.appId);
+ const [appId, appIdErr] = $.type(ID).optional.get(params.appId);
if (appIdErr) return rej('invalid appId param');
// Get 'nameId' parameter
- const [nameId, nameIdErr] = $.str.optional().get(params.nameId);
+ const [nameId, nameIdErr] = $.str.optional.get(params.nameId);
if (nameIdErr) return rej('invalid nameId param');
if (appId === undefined && nameId === undefined) {