mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix:Close player resetting progress #1807
This commit is contained in:
parent
9f6a7d065c
commit
c382f07b05
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user