From d867c2b4b324b49c637082ede25598d600f86bc9 Mon Sep 17 00:00:00 2001 From: joeuhren <46763106+joeuhren@users.noreply.github.com> Date: Fri, 20 Nov 2020 17:56:28 -0700 Subject: [PATCH] Updated Express: req.param deprecated - > req.params --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 12164c6..15d78e2 100644 --- a/app.js +++ b/app.js @@ -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) {