mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Merge pull request #1206 from lkiesow/400-bad-request
Respond with bad request to unvalid request data
This commit is contained in:
commit
ecefb30f3d
@ -91,7 +91,7 @@ class MeController {
|
||||
async batchUpdateMediaProgress(req, res) {
|
||||
var itemProgressPayloads = req.body
|
||||
if (!itemProgressPayloads || !itemProgressPayloads.length) {
|
||||
return res.sendStatus(500)
|
||||
return res.status(400).send('Missing request payload')
|
||||
}
|
||||
|
||||
var shouldUpdate = false
|
||||
|
Loading…
Reference in New Issue
Block a user