From 1255d7ce193ef801f122a2066dc01acf6e438bb6 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 17 Apr 2019 11:13:49 +0100 Subject: [PATCH] Fix another wrong const --- integrations/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/github.js b/integrations/github.js index c9edcf9..7fe4267 100644 --- a/integrations/github.js +++ b/integrations/github.js @@ -167,7 +167,7 @@ module.exports = async function(robot, kredits) { robot.router.post('/incoming/kredits/github/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => { const evt = req.header('X-GitHub-Event'); - const data = req.body; + let data = req.body; // For some reason data is contained in a payload property on one // machine, but directly in the root of the object on others if (data.payload) { data = JSON.parse(data.payload); }