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

This commit is contained in:
advplyr committed 2024-11-22 17:20:31 -06:00
1 parent f850db23fe
commit d19bb909b3
3 files changed
+14 -19

No files matched your search

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