fix
This commit is contained in:
parent
17a23c3eb5
commit
034c7c083a
20 changed files with 29 additions and 29 deletions
|
|
@ -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');
|
||||
|
||||
// 自分自身
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue