Merge pull request #942 from ronaldheft/patch-1

Fix currentTime not updating on the local session
This commit is contained in:
advplyr 2022-08-26 19:43:12 -05:00 committed by GitHub
commit 37ca139195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,7 @@ class PlaybackSessionManager {
session = new PlaybackSession(sessionJson)
await this.db.insertEntity('session', session)
} else {
session.currentTime = sessionJson.currentTime
session.timeListening = sessionJson.timeListening
session.updatedAt = sessionJson.updatedAt
session.date = date.format(new Date(), 'YYYY-MM-DD')
@ -267,4 +268,4 @@ class PlaybackSessionManager {
}
}
}
module.exports = PlaybackSessionManager
module.exports = PlaybackSessionManager