mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 01:05:25 +02:00
Fix:Close player resetting progress #1807
This commit is contained in:
parent
9f6a7d065c
commit
c382f07b05
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue