mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix currentTime not updating on the local session
This commit is contained in:
parent
ff6d95dc4d
commit
6b02779e0f
@ -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