return vote objects with full_account query
This commit is contained in:
parent
80602a1f7b
commit
25ceb9a277
2 changed files with 3 additions and 0 deletions
|
|
@ -259,6 +259,7 @@ namespace graphene { namespace app {
|
||||||
acnt.registrar_name = account->registrar(_db).name;
|
acnt.registrar_name = account->registrar(_db).name;
|
||||||
acnt.referrer_name = account->referrer(_db).name;
|
acnt.referrer_name = account->referrer(_db).name;
|
||||||
acnt.lifetime_referrer_name = account->lifetime_referrer(_db).name;
|
acnt.lifetime_referrer_name = account->lifetime_referrer(_db).name;
|
||||||
|
acnt.votes = lookup_vote_ids( vector<vote_id_type>(account->options.votes.begin(),account->options.votes.end()) );
|
||||||
|
|
||||||
// Add the account itself, its statistics object, cashback balance, and referral account names
|
// Add the account itself, its statistics object, cashback balance, and referral account names
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ namespace graphene { namespace app {
|
||||||
string registrar_name;
|
string registrar_name;
|
||||||
string referrer_name;
|
string referrer_name;
|
||||||
string lifetime_referrer_name;
|
string lifetime_referrer_name;
|
||||||
|
vector<variant> votes;
|
||||||
optional<vesting_balance_object> cashback_balance;
|
optional<vesting_balance_object> cashback_balance;
|
||||||
vector<account_balance_object> balances;
|
vector<account_balance_object> balances;
|
||||||
vector<vesting_balance_object> vesting_balances;
|
vector<vesting_balance_object> vesting_balances;
|
||||||
|
|
@ -29,6 +30,7 @@ FC_REFLECT( graphene::app::full_account,
|
||||||
(registrar_name)
|
(registrar_name)
|
||||||
(referrer_name)
|
(referrer_name)
|
||||||
(lifetime_referrer_name)
|
(lifetime_referrer_name)
|
||||||
|
(votes)
|
||||||
(cashback_balance)
|
(cashback_balance)
|
||||||
(balances)
|
(balances)
|
||||||
(vesting_balances)
|
(vesting_balances)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue