update webhook handling
All checks were successful
deploy / build-and-deploy (push) Successful in 30s
All checks were successful
deploy / build-and-deploy (push) Successful in 30s
This commit is contained in:
@@ -52,12 +52,14 @@ export async function sendWebhook<T extends WebhookAction>(action: T, data: Webh
|
|||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status === 200) return;
|
if (response.status === 200) break;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
{
|
{
|
||||||
retry: retries + 1,
|
retry: retries + 1,
|
||||||
error: e
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
error: e.message,
|
||||||
},
|
},
|
||||||
'error while sending webhook'
|
'error while sending webhook'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user