rm start/end 2

This commit is contained in:
Matias Alejo Garcia 2015-07-13 17:18:07 -03:00
parent ef296c5ebf
commit 671ef9a5bb

View File

@ -138,7 +138,9 @@ exports.multitxs = function(req, res, next) {
to = from + MAX_BATCH_SIZE;
if (from < 0) from = 0;
if (to > nbTxs) tx = nbTxs;
if (to < 0) to = 0;
if (from > nbTxs) from = nbTxs;
if (to > nbTxs) to = nbTxs;
txs.sort(function(a, b) {
return (b.ts || b.ts) - (a.ts || a.ts);