From 550a9c7f21126c7e2e2fd02d49a393a012106796 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Thu, 13 Feb 2014 10:24:47 -0300 Subject: [PATCH] fix issue #281 --- app/controllers/blocks.js | 7 ++++++- lib/BlockDb.js | 2 +- public/src/js/controllers/index.js | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/controllers/blocks.js b/app/controllers/blocks.js index 0b471cee..b67d8f3c 100644 --- a/app/controllers/blocks.js +++ b/app/controllers/blocks.js @@ -106,11 +106,16 @@ exports.list = function(req, res) { res.status(500).send(err); } else { + var blockList = []; var l = blocks.length; var limit = parseInt(req.query.limit || l); if (l < limit) limit = l; - async.mapSeries(blocks, + for(var i=0;i