floBlockchainAPI.readData will now return a object with totalTxs and data

This commit is contained in:
sairajzero 2019-10-06 03:15:18 +05:30
parent 9da3168f45
commit 68472cad56

View File

@ -5117,7 +5117,7 @@
/*Read flo Data from txs of given Address /*Read flo Data from txs of given Address
options can be used to filter data options can be used to filter data
limit : maximum number of filtered data (default = 1000, negative = no limit) limit : maximum number of filtered data (default = 1000, negative = no limit)
ignoreOld : ignore old txs (default = 0) ignoreOld : ignore old txs (default = 0)
sentOnly : filters only sent data sentOnly : filters only sent data
pattern : filters data that starts with a pattern pattern : filters data that starts with a pattern
contains : filters data that contains a string contains : filters data that contains a string
@ -5145,7 +5145,7 @@
continue; continue;
filteredData.push(response.items[i].floData); filteredData.push(response.items[i].floData);
} }
resolve(filteredData); resolve({totalTxs:response.totalItems , data:filteredData});
}).catch(error => { }).catch(error => {
reject(error); reject(error);
}); });