Trasforma in stringhe il corpo in JSON del webhook

This commit is contained in:
Simone 2024-02-13 19:20:22 +01:00
parent a472c1bf0a
commit 2cfc0d7fb1

View file

@ -63,7 +63,7 @@ module.exports = (logger, config, xmpp) => {
return res.status(404).send('Webhook not found')
}
logger.debug(`Webhook received: ${webhook.path}, start action: ${webhook.action}`)
logger.trace(req.body)
logger.trace(JSON.stringify(req.body))
switch (webhook.action) {
case 'send_xmpp_message': {
// get destination