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/posts/polls/vote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/endpoints/posts/polls') diff --git a/src/api/endpoints/posts/polls/vote.ts b/src/api/endpoints/posts/polls/vote.ts index d049041b2f..04e380807f 100644 --- a/src/api/endpoints/posts/polls/vote.ts +++ b/src/api/endpoints/posts/polls/vote.ts @@ -15,7 +15,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 votee -- cgit v1.2.3-freya