.listAddressUseServer(guid)
.then(addresses => {
let balances = []
+ let votes = []
addresses.forEach(address => {
if (address.balances != null) {
balances = balances.concat(address.balances)
}
+ if (address.votes != null) {
+ votes = votes.concat(address.votes)
+ }
})
let obj = {};
res.push(obj[prop]);
}
- resolve(res)
+ resolve({
+ balances:res,
+ votes
+ })
})
.catch(error => {
reject(error)