summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/auth/accept.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-27 19:12:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-27 19:12:15 +0900
commit0f27b629244ebaba1036596ffd2044126de94d07 (patch)
tree4001424f660328b413d978475d8bef8d692e6031 /src/server/api/endpoints/auth/accept.ts
parentUpdate README.md (diff)
downloadsharkey-0f27b629244ebaba1036596ffd2044126de94d07.tar.gz
sharkey-0f27b629244ebaba1036596ffd2044126de94d07.tar.bz2
sharkey-0f27b629244ebaba1036596ffd2044126de94d07.zip
Update dependencies :rocket:
Diffstat (limited to 'src/server/api/endpoints/auth/accept.ts')
-rw-r--r--src/server/api/endpoints/auth/accept.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/auth/accept.ts b/src/server/api/endpoints/auth/accept.ts
index b6297d663d..cb271f9d67 100644
--- a/src/server/api/endpoints/auth/accept.ts
+++ b/src/server/api/endpoints/auth/accept.ts
@@ -40,7 +40,7 @@ import AccessToken from '../../../../models/access-token';
*/
module.exports = (params, user) => new Promise(async (res, rej) => {
// Get 'token' parameter
- const [token, tokenErr] = $(params.token).string().$;
+ const [token, tokenErr] = $(params.token).string().get();
if (tokenErr) return rej('invalid token param');
// Fetch token