From cd54d559a7457e2b249b905b03b07c80c3677771 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Jan 2022 13:27:29 -0400 Subject: [PATCH] Use correct validated variable --- src/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 59f386f4..e2e5d4c0 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2089,7 +2089,7 @@ module.exports = async ( throw new Error(`Missing publicKey route param.`) } - await GunActions.follow(req.params.publicKey, false) + await GunActions.follow(publicKey, false) // 201 would be extraneous here. Implement it inside app.put return res.status(200).json({