Fix bug
This commit is contained in:
parent
12db5cde5f
commit
d05bf07b3f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||
}
|
||||
|
||||
// Delete favorite
|
||||
await Favorite.deleteOne({
|
||||
await Favorite.remove({
|
||||
_id: exist._id
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue