mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 14:13:08 +02:00
Fix comment
This commit is contained in:
parent
b7d422ff12
commit
65ae943d32
5 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ module.exports = (params, user) =>
|
||||||
return rej('post not found');
|
return rej('post not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
// already favorited
|
// if already favorited
|
||||||
const exist = await Favorite.findOne({
|
const exist = await Favorite.findOne({
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id
|
user_id: user._id
|
||||||
|
|
|
@ -31,7 +31,7 @@ module.exports = (params, user) =>
|
||||||
return rej('post not found');
|
return rej('post not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
// already favorited
|
// if already favorited
|
||||||
const exist = await Favorite.findOne({
|
const exist = await Favorite.findOne({
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id
|
user_id: user._id
|
||||||
|
|
|
@ -43,7 +43,7 @@ module.exports = (params, user) =>
|
||||||
return rej('-need-translate-');
|
return rej('-need-translate-');
|
||||||
}
|
}
|
||||||
|
|
||||||
// already liked
|
// if already liked
|
||||||
const exist = await Like.findOne({
|
const exist = await Like.findOne({
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id,
|
user_id: user._id,
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = (params, user) =>
|
||||||
return rej('post not found');
|
return rej('post not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
// already liked
|
// if already liked
|
||||||
const exist = await Like.findOne({
|
const exist = await Like.findOne({
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id,
|
user_id: user._id,
|
||||||
|
|
|
@ -52,7 +52,7 @@ module.exports = (params, user) =>
|
||||||
return rej('invalid choice');
|
return rej('invalid choice');
|
||||||
}
|
}
|
||||||
|
|
||||||
// already voted
|
// if already voted
|
||||||
const exist = await Vote.findOne({
|
const exist = await Vote.findOne({
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id
|
user_id: user._id
|
||||||
|
|
Loading…
Reference in a new issue