mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-29 18:19:06 +01:00
Merge pull request #942 from ronaldheft/patch-1
Fix currentTime not updating on the local session
This commit is contained in:
commit
37ca139195
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user