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) {
|
if (webhooks.length === 0) {
|
||||||
return {
|
return {
|
||||||
@@ -164,7 +165,7 @@ class ConnectivityService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const allWebhooksShareTheSameSecret = webhooks.every(
|
const allWebhooksShareTheSameSecret = webhooks.every(
|
||||||
(webhook: any) => webhook.secret === webhooksSecret,
|
(webhook: { secret: string }) => webhook.secret === webhooksSecret,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!allWebhooksShareTheSameSecret) {
|
if (!allWebhooksShareTheSameSecret) {
|
||||||
|
|||||||
@@ -18,12 +18,10 @@ export default async function DashboardPage(props: DashboardPageProps) {
|
|||||||
supabaseStatus,
|
supabaseStatus,
|
||||||
supabaseAdminStatus,
|
supabaseAdminStatus,
|
||||||
stripeStatus,
|
stripeStatus,
|
||||||
stripeWebhookStatus,
|
|
||||||
] = await Promise.all([
|
] = await Promise.all([
|
||||||
connectivityService.checkSupabaseConnectivity(),
|
connectivityService.checkSupabaseConnectivity(),
|
||||||
connectivityService.checkSupabaseAdminConnectivity(),
|
connectivityService.checkSupabaseAdminConnectivity(),
|
||||||
connectivityService.checkStripeConnected(),
|
connectivityService.checkStripeConnected(),
|
||||||
connectivityService.checkStripeWebhookEndpoints(),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -40,7 +38,6 @@ export default async function DashboardPage(props: DashboardPageProps) {
|
|||||||
<ServiceCard name={'Supabase API'} status={supabaseStatus} />
|
<ServiceCard name={'Supabase API'} status={supabaseStatus} />
|
||||||
<ServiceCard name={'Supabase Admin'} status={supabaseAdminStatus} />
|
<ServiceCard name={'Supabase Admin'} status={supabaseAdminStatus} />
|
||||||
<ServiceCard name={'Stripe API'} status={stripeStatus} />
|
<ServiceCard name={'Stripe API'} status={stripeStatus} />
|
||||||
<ServiceCard name={'Stripe Webhook'} status={stripeWebhookStatus} />
|
|
||||||
</div>
|
</div>
|
||||||
</PageBody>
|
</PageBody>
|
||||||
</Page>
|
</Page>
|
||||||
|
|||||||
Reference in New Issue
Block a user