Remove webhooks check for the time being, as it needs more work to actually verify the secret

This commit is contained in:
gbuomprisco
2025-03-13 12:13:43 +07:00
parent a45fda44cf
commit d415263b81
2 changed files with 3 additions and 5 deletions

View File

@@ -154,7 +154,8 @@ class ConnectivityService {
};
}
const webhooks = await request.json();
const webhooksResponse = await request.json();
const webhooks = webhooksResponse.data ?? [];
if (webhooks.length === 0) {
return {
@@ -164,7 +165,7 @@ class ConnectivityService {
}
const allWebhooksShareTheSameSecret = webhooks.every(
(webhook: any) => webhook.secret === webhooksSecret,
(webhook: { secret: string }) => webhook.secret === webhooksSecret,
);
if (!allWebhooksShareTheSameSecret) {