update webhook handling
All checks were successful
deploy / build-and-deploy (push) Successful in 30s

This commit is contained in:
2025-11-15 22:27:02 +01:00
parent 87d3f7c3af
commit 84b0226177

View File

@@ -52,12 +52,14 @@ export async function sendWebhook<T extends WebhookAction>(action: T, data: Webh
body: JSON.stringify(data)
});
if (response.status === 200) return;
if (response.status === 200) break;
} catch (e) {
logger.warn(
{
retry: retries + 1,
error: e
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
error: e.message,
},
'error while sending webhook'
);