mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-12 10:25:02 +02:00
Fix:Sync audiobook progress
This commit is contained in:
parent
4778d09501
commit
8ee4751cac
3 changed files with 14 additions and 12 deletions
|
@ -86,7 +86,7 @@ class UserAudiobookData {
|
|||
update(payload) {
|
||||
var hasUpdates = false
|
||||
for (const key in payload) {
|
||||
if (payload[key] !== this[key]) {
|
||||
if (this[key] !== undefined && payload[key] !== this[key]) {
|
||||
if (key === 'isRead') {
|
||||
if (!payload[key]) { // Updating to Not Read - Reset progress and current time
|
||||
this.finishedAt = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue