fix(webhook): add logging

This commit is contained in:
Gergő Móricz 2024-11-15 21:43:02 +01:00
parent 1b032b05fa
commit 1a0f13c0eb

View File

@ -46,6 +46,8 @@ export const callWebhook = async (
webhookUrl = webhooksData[0].url;
}
logger.debug("Calling webhook...", { webhookUrl, teamId, specified, v1, eventType, awaitWebhook });
if (!webhookUrl) {
return null;
}
@ -128,7 +130,6 @@ export const callWebhook = async (
"Content-Type": "application/json",
...webhookUrl.headers,
},
timeout: v1 ? 10000 : 30000, // 10 seconds timeout (v1)
}
)
.catch((error) => {