Merge pull request #1206 from lkiesow/400-bad-request

Respond with bad request to unvalid request data
This commit is contained in:
advplyr 2022-11-23 07:27:18 -06:00 committed by GitHub
commit ecefb30f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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