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) {
|
||||
|
||||
@@ -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) {
|
||||
<ServiceCard name={'Supabase API'} status={supabaseStatus} />
|
||||
<ServiceCard name={'Supabase Admin'} status={supabaseAdminStatus} />
|
||||
<ServiceCard name={'Stripe API'} status={stripeStatus} />
|
||||
<ServiceCard name={'Stripe Webhook'} status={stripeWebhookStatus} />
|
||||
</div>
|
||||
</PageBody>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user