Update:Sync session API endpoint to not respond with a payload

This commit is contained in:
advplyr 2023-01-07 17:33:05 -06:00
parent 5255bf13cc
commit bdb6f0c0aa

View File

@ -54,9 +54,10 @@ class PlaybackSessionManager {
} }
async syncSessionRequest(user, session, payload, res) { async syncSessionRequest(user, session, payload, res) {
const result = await this.syncSession(user, session, payload) if (await this.syncSession(user, session, payload)) {
if (result) { res.sendStatus(200)
res.json(session.toJSONForClient(result.libraryItem)) } else {
res.sendStatus(500)
} }
} }