summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/polls
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-02-27 17:44:31 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-02-27 17:44:31 +0900
commit65ae943d32052b1f39b2eb1289a817b4895bb557 (patch)
treed13b057e76e391c1d733204ee5d873189ba044a3 /src/api/endpoints/posts/polls
parentFix typo: configration -> configuration (diff)
downloadsharkey-65ae943d32052b1f39b2eb1289a817b4895bb557.tar.gz
sharkey-65ae943d32052b1f39b2eb1289a817b4895bb557.tar.bz2
sharkey-65ae943d32052b1f39b2eb1289a817b4895bb557.zip
Fix comment
Diffstat (limited to 'src/api/endpoints/posts/polls')
-rw-r--r--src/api/endpoints/posts/polls/vote.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/polls/vote.js b/src/api/endpoints/posts/polls/vote.js
index fb348cafed..bb4f7b259b 100644
--- a/src/api/endpoints/posts/polls/vote.js
+++ b/src/api/endpoints/posts/polls/vote.js
@@ -52,7 +52,7 @@ module.exports = (params, user) =>
return rej('invalid choice');
}
- // already voted
+ // if already voted
const exist = await Vote.findOne({
post_id: post._id,
user_id: user._id