commit
94f3062986
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