Fixed typo in search limiter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
43f0800f91
commit
09c464ccbb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user