From 13dca344c9806064377826d89e78e500c15fd37a Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Wed, 29 Dec 2021 13:28:14 -0800 Subject: [PATCH] Fix adapter typo. --- examples/pokedex/adapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pokedex/adapter.js b/examples/pokedex/adapter.js index 986cec8c..5f84b1f1 100644 --- a/examples/pokedex/adapter.js +++ b/examples/pokedex/adapter.js @@ -237,7 +237,7 @@ function reqToJson(req, requestTime) { function toJsonHelper(req, requestTime, multiPartFormData) { let jsonBody = null; try { - jsonBody = req.body && JSON.parse(body); + jsonBody = req.body && JSON.parse(req.body); } catch (jsonParseError) {} return { method: req.httpMethod,