Fix:Cleanup media progress when deleting podcasts, remove usage of old user model

This commit is contained in:
advplyr committed 2024-08-03 17:09:17 -05:00
1 parent 642cf232ba
commit a55c167dde
4 files changed
+44 -16

No files matched your search

+6
View File
@@ -427,6 +427,12 @@ class LibraryItem extends Model {
}
}
/**
* Remove library item by id
*
* @param {string} libraryItemId
* @returns {Promise<number>} The number of destroyed rows
*/
static removeById(libraryItemId) {
return this.destroy({
where: {