log webhook errors
This commit is contained in:
parent
f133114bcf
commit
48f1768124
|
@ -35,6 +35,7 @@ app.post('/webhook', async (req, res) => {
|
||||||
})
|
})
|
||||||
await Promise.all(promises)
|
await Promise.all(promises)
|
||||||
if(Object.keys(errors).length) {
|
if(Object.keys(errors).length) {
|
||||||
|
console.error('Errors while executing webhook', errors)
|
||||||
res.status(400).json(errors)
|
res.status(400).json(errors)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue