height is an integer
This commit is contained in:
parent
a411db153c
commit
d5781a4bc5
@ -32,6 +32,7 @@ Blocks.blockHashParam = function(req, res, next, blockHash) {
|
|||||||
|
|
||||||
Blocks.heightParam = function(req, res, next, height) {
|
Blocks.heightParam = function(req, res, next, height) {
|
||||||
// TODO: fetch block from service
|
// TODO: fetch block from service
|
||||||
|
height = parseInt(height);
|
||||||
var block = mockBlocks[Object.keys(mockBlocks)[height]];
|
var block = mockBlocks[Object.keys(mockBlocks)[height]];
|
||||||
|
|
||||||
if (_.isUndefined(block)) {
|
if (_.isUndefined(block)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user