mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-24 01:13:00 -04:00
Merge pull request #4326 from advplyr/fix_mediaprogress_updatedat
Fix MediaProgress not using the lastUpdate time sent for local progress syncs
This commit is contained in:
commit
5e5a988f7a
@ -246,9 +246,10 @@ class MediaProgress extends Model {
|
|||||||
// For local sync
|
// For local sync
|
||||||
if (progressPayload.lastUpdate) {
|
if (progressPayload.lastUpdate) {
|
||||||
this.updatedAt = progressPayload.lastUpdate
|
this.updatedAt = progressPayload.lastUpdate
|
||||||
|
this.changed('updatedAt', true)
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.save()
|
return this.save({ silent: !!progressPayload.lastUpdate })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user