mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 19:31:39 +00:00
Change: response to say non-negative
This commit is contained in:
parent
7b8709f029
commit
aa3079189e
1 changed files with 1 additions and 1 deletions
|
|
@ -1248,7 +1248,7 @@ class LibraryController {
|
|||
for (const queryKey of ['limit', 'page']) {
|
||||
req.query[queryKey] = req.query[queryKey] && !isNaN(req.query[queryKey]) ? Number(req.query[queryKey]) : 0
|
||||
if (!Number.isInteger(req.query[queryKey]) || req.query[queryKey] < 0) {
|
||||
return res.status(400).send(`Invalid request. ${queryKey} must be a positive integer`)
|
||||
return res.status(400).send(`Invalid request. ${queryKey} must be a non-negative integer`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue