From 81b4f0e7c3cc07f4e0abee71867641cd30a9a54c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 27 Feb 2017 17:44:31 +0900 Subject: [PATCH] Fix comment --- src/api/endpoints/posts/favorites/create.js | 2 +- src/api/endpoints/posts/favorites/delete.js | 2 +- src/api/endpoints/posts/likes/create.js | 2 +- src/api/endpoints/posts/likes/delete.js | 2 +- src/api/endpoints/posts/polls/vote.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/endpoints/posts/favorites/create.js b/src/api/endpoints/posts/favorites/create.js index 4fc67b6b0..0d9e86a9f 100644 --- a/src/api/endpoints/posts/favorites/create.js +++ b/src/api/endpoints/posts/favorites/create.js @@ -31,7 +31,7 @@ module.exports = (params, user) => return rej('post not found'); } - // already favorited + // if already favorited const exist = await Favorite.findOne({ post_id: post._id, user_id: user._id diff --git a/src/api/endpoints/posts/favorites/delete.js b/src/api/endpoints/posts/favorites/delete.js index aeaeb92b0..e13f78654 100644 --- a/src/api/endpoints/posts/favorites/delete.js +++ b/src/api/endpoints/posts/favorites/delete.js @@ -31,7 +31,7 @@ module.exports = (params, user) => return rej('post not found'); } - // already favorited + // if already favorited const exist = await Favorite.findOne({ post_id: post._id, user_id: user._id diff --git a/src/api/endpoints/posts/likes/create.js b/src/api/endpoints/posts/likes/create.js index 4d0da6cd4..6b8f1addd 100644 --- a/src/api/endpoints/posts/likes/create.js +++ b/src/api/endpoints/posts/likes/create.js @@ -43,7 +43,7 @@ module.exports = (params, user) => return rej('-need-translate-'); } - // already liked + // if already liked const exist = await Like.findOne({ post_id: post._id, user_id: user._id, diff --git a/src/api/endpoints/posts/likes/delete.js b/src/api/endpoints/posts/likes/delete.js index 3761b70e0..a863fb267 100644 --- a/src/api/endpoints/posts/likes/delete.js +++ b/src/api/endpoints/posts/likes/delete.js @@ -38,7 +38,7 @@ module.exports = (params, user) => return rej('post not found'); } - // already liked + // if already liked const exist = await Like.findOne({ post_id: post._id, user_id: user._id, diff --git a/src/api/endpoints/posts/polls/vote.js b/src/api/endpoints/posts/polls/vote.js index fb348cafe..bb4f7b259 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