fix
This commit is contained in:
@@ -18,7 +18,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');
|
||||
|
||||
// Check if the followee is yourself
|
||||
|
Reference in New Issue
Block a user