diff --git a/server/objects/entities/Audiobook.js b/server/objects/entities/Audiobook.js index bf7dde28..86cbf9e5 100644 --- a/server/objects/entities/Audiobook.js +++ b/server/objects/entities/Audiobook.js @@ -24,7 +24,7 @@ class Audiobook { this.name = audiobook.name || null this.audioFiles = audiobook.audioFiles.map(f => new AudioFile(f)) this.chapters = audiobook.chapters.map(c => ({ ...c })) - this.missingParts = audiobook.missingParts ? [...book.missingParts] : [] + this.missingParts = audiobook.missingParts ? [...audiobook.missingParts] : [] this.addedAt = audiobook.addedAt this.updatedAt = audiobook.updatedAt }