From 8df05896b56b3e813438ba736fb474348802cd39 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 9 Apr 2022 20:30:18 -0500 Subject: [PATCH] Fix remove media progress use libraryItemId --- server/objects/user/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/objects/user/User.js b/server/objects/user/User.js index 39fde22c..66f72e09 100644 --- a/server/objects/user/User.js +++ b/server/objects/user/User.js @@ -270,7 +270,7 @@ class User { } removeMediaProgress(libraryItemId) { - if (!this.mediaProgress.some(lip => lip.id == libraryItemId)) return false + if (!this.mediaProgress.some(lip => lip.libraryItemId == libraryItemId)) return false this.mediaProgress = this.mediaProgress.filter(lip => lip.libraryItemId != libraryItemId) return true }