mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-21 22:35:11 +00:00
Fix bug
This commit is contained in:
parent
5d6ef4fa30
commit
650777634a
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