mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +02:00
Fix:Init user audiobook map before mobile app sync #345
This commit is contained in:
parent
590dbe3991
commit
d2c1c7aee0
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ class User {
|
|||
Logger.error(`[User] Invalid local user audiobook data`, localUserAudiobookData)
|
||||
return false
|
||||
}
|
||||
if (!this.audiobooks) this.audiobooks = {}
|
||||
|
||||
if (!this.audiobooks[localUserAudiobookData.audiobookId]) {
|
||||
this.audiobooks[localUserAudiobookData.audiobookId] = new UserAudiobookData(localUserAudiobookData)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue