From 34d55d4b60e7b602cd6bc783308c30f15c64a09c Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Jan 2022 13:26:34 -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 c467cbd3..59f386f4 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2112,7 +2112,7 @@ module.exports = async ( throw new Error(`Missing publicKey route param.`) } - await GunActions.unfollow(req.params.publicKey) + await GunActions.unfollow(publicKey) return res.status(200).json({ ok: true