mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-30 18:48:55 +01:00
Update:Sync session API endpoint to not respond with a payload
This commit is contained in:
parent
5255bf13cc
commit
bdb6f0c0aa
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user