summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 19:09:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 19:09:42 +0900
commit650777634a9b6d73995b319d42ffcb4a17d08259 (patch)
treeb29b90034d568fd5ea960b791473a96d33597f3e /src/api
parentoops (diff)
downloadsharkey-650777634a9b6d73995b319d42ffcb4a17d08259.tar.gz
sharkey-650777634a9b6d73995b319d42ffcb4a17d08259.tar.bz2
sharkey-650777634a9b6d73995b319d42ffcb4a17d08259.zip
Fix bug
Diffstat (limited to 'src/api')
-rw-r--r--src/api/endpoints/posts/favorites/delete.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/favorites/delete.ts b/src/api/endpoints/posts/favorites/delete.ts
index b1b4fcebc4..db52036ec5 100644
--- a/src/api/endpoints/posts/favorites/delete.ts
+++ b/src/api/endpoints/posts/favorites/delete.ts
@@ -37,7 +37,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
}
// Delete favorite
- await Favorite.deleteOne({
+ await Favorite.remove({
_id: exist._id
});