diff --git a/lib/web3.js b/lib/web3.js index ec56ae93b..65f64618e 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -286,7 +286,6 @@ const _mirrorTransaction = (event, collectiveId, block) => { const authorUsername = _getUserAddress(event, collectiveId, 'MEMBER'); const user = Meteor.users.findOne({ username: authorUsername }); const index = new BigNumber(event.returnValues.proposalIndex).toString(); - log(`[web3] Mirroring blockchain event as transaction action with index: ${index}...`); if (user) { @@ -294,10 +293,10 @@ const _mirrorTransaction = (event, collectiveId, block) => { if (contract) { let poll; switch (event.returnValues.uintVote) { - case 1: // yes + case '1': // yes poll = Contracts.findOne({ keyword: `${contract.keyword}/yes` }); break; - case 2: // no + case '2': // no poll = Contracts.findOne({ keyword: `${contract.keyword}/no` }); break; default: