mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 09:44:41 +02:00
Fix:Server crash deleting library that has playback sessions #3634
This commit is contained in:
parent
f850db23fe
commit
d19bb909b3
3 changed files with 14 additions and 19 deletions
|
@ -107,19 +107,6 @@ class Library extends Model {
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy library by id
|
||||
* @param {string} libraryId
|
||||
* @returns
|
||||
*/
|
||||
static removeById(libraryId) {
|
||||
return this.destroy({
|
||||
where: {
|
||||
id: libraryId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all library ids
|
||||
* @returns {Promise<string[]>} array of library ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue