mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-04 13:09:50 +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)
|
session = new PlaybackSession(sessionJson)
|
||||||
await this.db.insertEntity('session', session)
|
await this.db.insertEntity('session', session)
|
||||||
} else {
|
} else {
|
||||||
|
session.currentTime = sessionJson.currentTime
|
||||||
session.timeListening = sessionJson.timeListening
|
session.timeListening = sessionJson.timeListening
|
||||||
session.updatedAt = sessionJson.updatedAt
|
session.updatedAt = sessionJson.updatedAt
|
||||||
session.date = date.format(new Date(), 'YYYY-MM-DD')
|
session.date = date.format(new Date(), 'YYYY-MM-DD')
|
||||||
|
Loading…
Reference in New Issue
Block a user