From 034c7c083adf5433f1956753cd1b98d54483db4a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 5 Mar 2017 12:09:34 +0900 Subject: fix --- src/api/endpoints/following/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/endpoints/following/create.ts') diff --git a/src/api/endpoints/following/create.ts b/src/api/endpoints/following/create.ts index 45c93ef056..28a69844c2 100644 --- a/src/api/endpoints/following/create.ts +++ b/src/api/endpoints/following/create.ts @@ -19,7 +19,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => { const follower = user; // Get 'user_id' parameter - const [userId, userIdErr] = it(params.user_id, 'id', true); + const [userId, userIdErr] = it(params.user_id, 'id!').get(); if (userIdErr) return rej('invalid user_id param'); // 自分自身 -- cgit v1.2.3-freya