Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update route.ts

Kiran Kf5a015abd62a
diff --git a/apps/web/app/(ee)/api/hubspot/webhook/route.ts b/apps/web/app/(ee)/api/hubspot/webhook/route.ts
index fce206c8d7..31bfb7d95c 100644
--- a/apps/web/app/(ee)/api/hubspot/webhook/route.ts
+++ b/apps/web/app/(ee)/api/hubspot/webhook/route.ts
@@ -53,7 +53,7 @@ export const POST = withAxiom(async (req: AxiomRequest) => {
// HS send multiple events in the same request
// so we need to process each event individually
- await Promise.allSettled(payload.reverse().map(processWebhookEvent));
+ await Promise.allSettled(payload.map(processWebhookEvent));
return NextResponse.json({ message: "Webhook received." });
} catch (error) {