Fix:Server crash deleting library that has playback sessions #3634

This commit is contained in:
advplyr 2024-11-22 17:20:31 -06:00
parent f850db23fe
commit d19bb909b3
3 changed files with 14 additions and 19 deletions

View file

@ -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