Merge pull request #4326 from advplyr/fix_mediaprogress_updatedat
Some checks failed
Run Unit Tests / Run Unit Tests (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled

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 })
}
}