From 1a7efa95f140286557f1edd2eedb0a37a505844c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 27 Feb 2017 16:51:46 +0900 Subject: [PATCH] Fix English grammatical error --- 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 21ba9ecb27..4fc67b6b03 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'); } - // Check already favorited + // 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 fc587fda71..aeaeb92b0c 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'); } - // Check already favorited + // 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 741e868863..4d0da6cd42 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-'); } - // Check already liked + // 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 b04c497e57..3761b70e09 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'); } - // Check already liked + // 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 c13772554a..fb348cafed 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'); } - // Check already voted + // already voted const exist = await Vote.findOne({ post_id: post._id, user_id: user._id