Fix comment

This commit is contained in:
Aya Morisawa 2017-02-27 17:44:31 +09:00
parent db29372b01
commit 81b4f0e7c3
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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