Add LibraryItemController test for delete/batchDelete/updateMedia endpoint functions to correctly remove authors & series with no books

This commit is contained in:
advplyr 2024-12-01 12:44:21 -06:00
parent c496db7c95
commit 2b5484243b
4 changed files with 210 additions and 5 deletions

View file

@ -262,7 +262,7 @@ class LibraryItem {
* @returns {Promise<LibraryFile>} null if not saved
*/
async saveMetadata() {
if (this.isSavingMetadata) return null
if (this.isSavingMetadata || !global.MetadataPath) return null
this.isSavingMetadata = true