This commit is contained in:
syuilo
2017-03-03 08:06:34 +09:00
parent 583b64331b
commit 67f9c158d7
8 changed files with 93 additions and 107 deletions

View File

@@ -22,7 +22,7 @@ module.exports = (params, user) =>
// Get favoritee
const post = await Post.findOne({
_id: new mongo.ObjectID(postId)
_id: postId
});
if (post === null) {