mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +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) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user