From 6b02779e0f205f6307c08d6726f573c320a65ea2 Mon Sep 17 00:00:00 2001 From: Ron Heft Date: Fri, 26 Aug 2022 20:28:41 -0400 Subject: [PATCH] Fix currentTime not updating on the local session --- server/managers/PlaybackSessionManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/managers/PlaybackSessionManager.js b/server/managers/PlaybackSessionManager.js index b5cf4152..9d56dca6 100644 --- a/server/managers/PlaybackSessionManager.js +++ b/server/managers/PlaybackSessionManager.js @@ -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 \ No newline at end of file +module.exports = PlaybackSessionManager