mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Fix comment
This commit is contained in:
parent
db29372b01
commit
81b4f0e7c3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user