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 track-lead.ts

Kiran K43f8b6d4538a
diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.ts
index 148dfe8491..ae5358d5f0 100644
--- a/apps/web/lib/integrations/hubspot/track-lead.ts
+++ b/apps/web/lib/integrations/hubspot/track-lead.ts
@@ -14,8 +14,7 @@ export const trackHubSpotLeadEvent = async ({
workspace: Pick<WorkspaceProps, "id" | "stripeConnectId" | "webhookEnabled">;
authToken: HubSpotAuthToken;
}) => {
- const { objectId, objectTypeId, subscriptionType } =
- hubSpotLeadEventSchema.parse(payload);
+ const { objectId, objectTypeId } = hubSpotLeadEventSchema.parse(payload);
// A new contact is created (deferred lead tracking)
if (objectTypeId === "0-1") {