diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-19 00:01:37 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-19 00:01:37 +0900 |
| commit | f5937d02566b3d34662318878a258b2d85db25d3 (patch) | |
| tree | 512ece85b1832d867643685d6465f6c1942def06 /src/api/endpoints | |
| parent | Update post-detail.tag (diff) | |
| download | sharkey-f5937d02566b3d34662318878a258b2d85db25d3.tar.gz sharkey-f5937d02566b3d34662318878a258b2d85db25d3.tar.bz2 sharkey-f5937d02566b3d34662318878a258b2d85db25d3.zip | |
[API] Fix bug
Diffstat (limited to 'src/api/endpoints')
| -rw-r--r-- | src/api/endpoints/posts/polls/vote.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/polls/vote.ts b/src/api/endpoints/posts/polls/vote.ts index e345497905..6e71d1816f 100644 --- a/src/api/endpoints/posts/polls/vote.ts +++ b/src/api/endpoints/posts/polls/vote.ts @@ -33,7 +33,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'choice' parameter const [choice, choiceError] = - $(params.choice).string() + $(params.choice).number() .pipe(c => post.poll.choices.some(x => x.id == c)) .$; if (choiceError) return rej('invalid choice param'); |