From ab03a0b1e07aeb924c7c76a4ace610883bfa0c6b Mon Sep 17 00:00:00 2001 From: Santiago Siri Date: Mon, 10 Feb 2020 18:25:34 +0100 Subject: [PATCH] bug fix to persist transactions --- lib/web3.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: