Fix another wrong const

This commit is contained in:
Basti 2019-04-17 11:13:49 +01:00
parent d9e09ce041
commit 1255d7ce19
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -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); }