mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Update:Sync session API endpoint to not respond with a payload
This commit is contained in:
parent
5255bf13cc
commit
bdb6f0c0aa
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue