Fix unexpected end error from node

This commit is contained in:
snugghash 2017-06-10 23:54:34 +05:30
parent fef5ff6013
commit b750bbfda3
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
* and in case it's a comment that has "@autobounty <decimal> <currency>" * and in case it's a comment that has "@autobounty <decimal> <currency>"
* awards that bounty to the address posted earlier in the thread (by the * awards that bounty to the address posted earlier in the thread (by the
* commiteth bot). * commiteth bot).
* TODO tests
*/ */
const SignerProvider = require('ethjs-provider-signer'); const SignerProvider = require('ethjs-provider-signer');
@ -43,9 +44,10 @@ app.post('/address/:address', function(req, res, next){
res.json({ txID }) res.json({ txID })
} }
}); });
}) });
}); });
const port = process.env.PORT || 8181 const port = process.env.PORT || 8181
app.listen(port, function(){ app.listen(port, function(){
console.log('Autobounty listening on port', port); console.log('Autobounty listening on port', port);
});