From 2cfc0d7fb16654bac94d51dad914a62c763b4238 Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 13 Feb 2024 19:20:22 +0100 Subject: [PATCH] Trasforma in stringhe il corpo in JSON del webhook --- lib/webhook/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webhook/index.js b/lib/webhook/index.js index a285148..f0e3941 100644 --- a/lib/webhook/index.js +++ b/lib/webhook/index.js @@ -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