fix
This commit is contained in:
parent
17a23c3eb5
commit
034c7c083a
20 changed files with 29 additions and 29 deletions
|
@ -16,7 +16,7 @@ import notify from '../../../common/notify';
|
|||
*/
|
||||
module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
// Get 'post_id' parameter
|
||||
const [postId, postIdErr] = it(params.post_id, 'id', true);
|
||||
const [postId, postIdErr] = it(params.post_id, 'id!').get();
|
||||
if (postIdErr) return rej('invalid post_id param');
|
||||
|
||||
// Get likee
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue