Created a timeout for starting webhook mode to allow traefik to expose the webhook server and assign an SSL cert.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 3m28s

This commit is contained in:
2025-10-20 23:45:20 -04:00
parent aa0be3b56c
commit 57b64e9b5e

View File

@@ -83,7 +83,10 @@ async function startWebhook(config: WebhookConfig) {
}
try {
if (config.isWebhookMode) await startWebhook(config);
if (config.isWebhookMode)
await setTimeout(() => {
if (config.isWebhookMode) startWebhook(config);
}, 20000);
else if (config.isPollingMode) await startPolling(config);
} catch (error) {
logger.error(error);