diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-03 08:06:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-03 08:06:34 +0900 |
| commit | 67f9c158d71c497f3f3889e10fa1587a9a038381 (patch) | |
| tree | 68da64c714a2028717b8b0db2fc6dd5bc965bd37 /src/api/endpoints/posts/favorites/create.ts | |
| parent | wip (diff) | |
| download | sharkey-67f9c158d71c497f3f3889e10fa1587a9a038381.tar.gz sharkey-67f9c158d71c497f3f3889e10fa1587a9a038381.tar.bz2 sharkey-67f9c158d71c497f3f3889e10fa1587a9a038381.zip | |
wip
Diffstat (limited to 'src/api/endpoints/posts/favorites/create.ts')
| -rw-r--r-- | src/api/endpoints/posts/favorites/create.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/favorites/create.ts b/src/api/endpoints/posts/favorites/create.ts index 5be338593c..45a347ebb3 100644 --- a/src/api/endpoints/posts/favorites/create.ts +++ b/src/api/endpoints/posts/favorites/create.ts @@ -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) { |