mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-04 12:02:01 +02:00
Merge branch 'advplyr:master' into fix-match-update
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user