From aa3079189e9a96690791f1eadf5f2235ccfe7b1d Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 11 Oct 2024 09:33:10 -0700 Subject: [PATCH] Change: response to say non-negative --- server/controllers/LibraryController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/LibraryController.js b/server/controllers/LibraryController.js index 0e8578e64..ad976e8b7 100644 --- a/server/controllers/LibraryController.js +++ b/server/controllers/LibraryController.js @@ -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`) } }