mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01:00
Fix:Cleanup media progress when deleting podcasts, remove usage of old user model
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user