mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 06:26:26 +01:00
Update filterData for authors/series when added/removed
This commit is contained in:
1 parent
7222171c5b
commit
9d7d4c6902
12 files changed
+152
-13
No files matched your search
@@ -113,6 +113,8 @@ class AuthorController {
|
||||
// Remove old author
|
||||
await Database.removeAuthor(req.author.id)
|
||||
SocketAuthority.emitter('author_removed', req.author.toJSON())
|
||||
// Update filter data
|
||||
Database.removeAuthorFromFilterData(req.author.libraryId, req.author.id)
|
||||
|
||||
// Send updated num books for merged author
|
||||
const numBooks = await Database.models.libraryItem.getForAuthor(existingAuthor).length
|
||||
|
||||
Reference in new issue
Block a user