Merge pull request #3 from jejolare-dev/fix__block_search
fix block search
This commit is contained in:
commit
35fd79e5fc
1 changed files with 1 additions and 1 deletions
|
|
@ -839,7 +839,7 @@ const requestsLimiter = rateLimit({
|
|||
const start = parseInt(req.params.start, 10);
|
||||
const count = parseInt(req.params.count, 10);
|
||||
|
||||
if (start && count) {
|
||||
if (!isNaN(start) && start >= 0 && count) {
|
||||
const result = await getBlocksDetails({ start, count });
|
||||
res.json(result);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue