mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-14 11:25:02 +02:00
Fix:Clear library filter data cache when library item is updated #2597
This commit is contained in:
parent
acf75abdf1
commit
a43b93d796
2 changed files with 18 additions and 1 deletions
|
@ -225,6 +225,12 @@ class LibraryItem extends Model {
|
|||
return newLibraryItem
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates libraryItem, book, authors and series from old library item
|
||||
*
|
||||
* @param {oldLibraryItem} oldLibraryItem
|
||||
* @returns {Promise<boolean>} true if updates were made
|
||||
*/
|
||||
static async fullUpdateFromOld(oldLibraryItem) {
|
||||
const libraryItemExpanded = await this.findByPk(oldLibraryItem.id, {
|
||||
include: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue