Fix bug
This commit is contained in:
parent
5d6ef4fa30
commit
650777634a
|
@ -37,7 +37,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete favorite
|
// Delete favorite
|
||||||
await Favorite.deleteOne({
|
await Favorite.remove({
|
||||||
_id: exist._id
|
_id: exist._id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue