Merge branch 'advplyr:master' into fix-match-update

This commit is contained in:
mikiher
2024-02-22 12:20:49 +02:00
committed by GitHub
95 changed files with 3692 additions and 843 deletions
+6
View File
@@ -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: [