Updated Express: req.param deprecated - > req.params

This commit is contained in:
joeuhren
2020-11-20 17:56:28 -07:00
parent f79ca565ec
commit d867c2b4b3
+1 -1
View File
@@ -85,7 +85,7 @@ app.use('/ext/getaddress/:hash', function(req,res){
});
app.use('/ext/gettx/:txid', function(req, res) {
var txid = req.param('txid');
var txid = req.params.txid;
db.get_tx(txid, function(tx) {
if (tx) {
lib.get_blockcount(function(blockcount) {