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
commit 0f4b11494e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
95 changed files with 3692 additions and 843 deletions

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: [