Merge pull request #3 from jejolare-dev/fix__block_search

fix block search
This commit is contained in:
Dmitrii Kolpakov 2024-12-02 18:33:26 +07:00 committed by GitHub
commit 35fd79e5fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {