address: pass "from" and "to" options
This commit is contained in:
parent
4e54d195b9
commit
29e96e83ae
@ -15,6 +15,11 @@ AddressController.prototype.show = function(req, res) {
|
||||
noTxList: parseInt(req.query.noTxList)
|
||||
};
|
||||
|
||||
if (req.query.from && req.query.to) {
|
||||
options.from = parseInt(req.query.from);
|
||||
options.to = parseInt(req.query.to);
|
||||
}
|
||||
|
||||
this.getAddressSummary(req.addr, options, function(err, data) {
|
||||
if(err) {
|
||||
return common.handleErrors(err, res);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user