Fix another wrong const
This commit is contained in:
parent
d9e09ce041
commit
1255d7ce19
@ -167,7 +167,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|
||||||
robot.router.post('/incoming/kredits/github/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
|
robot.router.post('/incoming/kredits/github/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
|
||||||
const evt = req.header('X-GitHub-Event');
|
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
|
// For some reason data is contained in a payload property on one
|
||||||
// machine, but directly in the root of the object on others
|
// machine, but directly in the root of the object on others
|
||||||
if (data.payload) { data = JSON.parse(data.payload); }
|
if (data.payload) { data = JSON.parse(data.payload); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user