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:
advplyr 2025-05-22 17:43:31 -05:00 committed by GitHub
commit 5e5a988f7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,9 +246,10 @@ class MediaProgress extends Model {
// For local sync
if (progressPayload.lastUpdate) {
this.updatedAt = progressPayload.lastUpdate
this.changed('updatedAt', true)
}
return this.save()
return this.save({ silent: !!progressPayload.lastUpdate })
}
}