From 4dcf4612b3e337e5cf5a001e6547d0f97881bc0c Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Fri, 22 Mar 2024 11:02:59 +0100 Subject: [PATCH] fix: webhooks page breaking with too many surveys in the env (#2322) --- .../environments/[environmentId]/integrations/webhooks/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/(app)/environments/[environmentId]/integrations/webhooks/page.tsx b/apps/web/app/(app)/environments/[environmentId]/integrations/webhooks/page.tsx index 8d1d38600d..23395120bb 100644 --- a/apps/web/app/(app)/environments/[environmentId]/integrations/webhooks/page.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/integrations/webhooks/page.tsx @@ -10,7 +10,7 @@ import GoBackButton from "@formbricks/ui/GoBackButton"; export default async function CustomWebhookPage({ params }) { const [webhooksUnsorted, surveys, environment] = await Promise.all([ getWebhooks(params.environmentId), - getSurveys(params.environmentId), + getSurveys(params.environmentId, 200), // HOTFIX: not getting all surveys for now since it's maxing out the prisma accelerate limit getEnvironment(params.environmentId), ]); if (!environment) {