From d415263b81da99ac80b2ac02881f8eaaadcd29b2 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Thu, 13 Mar 2025 12:13:43 +0700 Subject: [PATCH] Remove webhooks check for the time being, as it needs more work to actually verify the secret --- apps/dev-tool/app/lib/connectivity-service.ts | 5 +++-- apps/dev-tool/app/page.tsx | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/dev-tool/app/lib/connectivity-service.ts b/apps/dev-tool/app/lib/connectivity-service.ts index 1c33cc398..23221b6c6 100644 --- a/apps/dev-tool/app/lib/connectivity-service.ts +++ b/apps/dev-tool/app/lib/connectivity-service.ts @@ -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) { diff --git a/apps/dev-tool/app/page.tsx b/apps/dev-tool/app/page.tsx index c5b2635ed..d9eff6683 100644 --- a/apps/dev-tool/app/page.tsx +++ b/apps/dev-tool/app/page.tsx @@ -18,12 +18,10 @@ export default async function DashboardPage(props: DashboardPageProps) { supabaseStatus, supabaseAdminStatus, stripeStatus, - stripeWebhookStatus, ] = await Promise.all([ connectivityService.checkSupabaseConnectivity(), connectivityService.checkSupabaseAdminConnectivity(), connectivityService.checkStripeConnected(), - connectivityService.checkStripeWebhookEndpoints(), ]); return ( @@ -40,7 +38,6 @@ export default async function DashboardPage(props: DashboardPageProps) { -