From bdb6f0c0aa6b66350a1d1f8bf330ca7130aa1f31 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 7 Jan 2023 17:33:05 -0600 Subject: [PATCH] Update:Sync session API endpoint to not respond with a payload --- server/managers/PlaybackSessionManager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/managers/PlaybackSessionManager.js b/server/managers/PlaybackSessionManager.js index c6ea39e8..bd1c3c99 100644 --- a/server/managers/PlaybackSessionManager.js +++ b/server/managers/PlaybackSessionManager.js @@ -54,9 +54,10 @@ class PlaybackSessionManager { } async syncSessionRequest(user, session, payload, res) { - const result = await this.syncSession(user, session, payload) - if (result) { - res.json(session.toJSONForClient(result.libraryItem)) + if (await this.syncSession(user, session, payload)) { + res.sendStatus(200) + } else { + res.sendStatus(500) } }