fix: webhooks page breaking with too many surveys in the env (#2322)

This commit is contained in:
Matti Nannt
2024-03-22 11:02:59 +01:00
committed by GitHub
parent fa370c6900
commit 4dcf4612b3

View File

@@ -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) {