diff --git a/lib/ReferendumState.js b/lib/ReferendumState.js index 9a531ed..8e9433b 100644 --- a/lib/ReferendumState.js +++ b/lib/ReferendumState.js @@ -69,7 +69,7 @@ class ReferendumState { proposalData.proposal_json = JSON.parse(proposalData.proposal_json); }catch(e){} - + proposalData.created_at = moment.utc(action.timestamp).unix(); proposalData.expires_at_unix = moment.utc(proposalData.expires_at).unix(); @@ -122,6 +122,7 @@ class ReferendumState { }else{ voteProposal.against--; } + voteProposal.total--; // this.voters.remove(existsVoter); }else{ if(existsVoter){