This commit is contained in:
1 parent
43f0800f91
commit
09c464ccbb
1 file changed
+1
-1
+1
-1
@@ -7,7 +7,7 @@ exports.getIndex = async function(req, res) {
|
|||||||
// check if there's a limit set
|
// check if there's a limit set
|
||||||
let limit = 10; // default to 10 results
|
let limit = 10; // default to 10 results
|
||||||
if ('limit' in req.query) {
|
if ('limit' in req.query) {
|
||||||
const limit = req.query.limit;
|
limit = req.query.limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fetch inventory items from database
|
// fetch inventory items from database
|
||||||
|
|||||||
Reference in new issue
Block a user