Fix:Close player resetting progress #1807

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