mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 04:39:40 +00:00
Merge branch 'advplyr:master' into fix-match-update
This commit is contained in:
commit
0f4b11494e
95 changed files with 3692 additions and 843 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