1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-04-25 01:16:40 +02:00

Fix:Close player resetting progress

This commit is contained in:
advplyr 2023-05-30 16:08:30 -05:00
parent 9f6a7d065c
commit c382f07b05

View File

@ -74,7 +74,9 @@ class SessionController {
// POST: api/session/:id/close
close(req, res) {
this.playbackSessionManager.closeSessionRequest(req.user, req.session, req.body, res)
let syncData = req.body
if (syncData && !Object.keys(syncData).length) syncData = null
this.playbackSessionManager.closeSessionRequest(req.user, req.session, syncData, res)
}
// DELETE: api/session/:id