mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-10 07:37:35 +02:00
Remove old Author object & fix issue deleting empty authors
This commit is contained in:
@ -887,8 +887,7 @@ class LibraryController {
|
||||
const oldAuthors = []
|
||||
|
||||
for (const author of authors) {
|
||||
const oldAuthor = author.getOldAuthor().toJSON()
|
||||
oldAuthor.numBooks = author.books.length
|
||||
const oldAuthor = author.toOldJSONExpanded(author.books.length)
|
||||
oldAuthor.lastFirst = author.lastFirst
|
||||
oldAuthors.push(oldAuthor)
|
||||
}
|
||||
|
Reference in New Issue
Block a user