diff --git a/src/routes/home.js b/src/routes/home.js index 36872c2..c4f3c5b 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -7,7 +7,7 @@ exports.getIndex = async function(req, res) { // check if there's a limit set let limit = 10; // default to 10 results if ('limit' in req.query) { - const limit = req.query.limit; + limit = req.query.limit; } // fetch inventory items from database