This commit is contained in:
syuilo 2017-03-05 12:09:34 +09:00
parent 17a23c3eb5
commit 034c7c083a
20 changed files with 29 additions and 29 deletions

View file

@ -16,7 +16,7 @@ import getFriends from '../../common/get-friends';
*/
module.exports = (params, me) => new Promise(async (res, rej) => {
// 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');
// Get 'iknow' parameter