From 09c464ccbbeba9696218793bd4f6daf37fc70b3e Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Fri, 24 May 2024 12:52:58 -0400 Subject: [PATCH] Fixed typo in search limiter --- src/routes/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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