{BUGFIX} Suppression d'un album depuis la liste

This commit is contained in:
Damien Broqua 2023-09-22 08:46:43 +02:00
parent 4ea7b42d52
commit e28f382c6c
2 changed files with 13 additions and 14 deletions

View file

@ -297,7 +297,7 @@ Publié automatiquement via #musictopus`;
*/
async deleteOne() {
const res = await AlbumsModel.findOneAndDelete({
user: this.req.user._id,
User: this.req.user._id,
_id: this.req.params.itemId,
});