Remove webhooks check for the time being, as it needs more work to actually verify the secret
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user