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 schema.ts

Kiran Kc583a533bb26
diff --git a/apps/web/lib/integrations/hubspot/schema.ts b/apps/web/lib/integrations/hubspot/schema.ts
index 87373cc635..a00eacbfb5 100644
--- a/apps/web/lib/integrations/hubspot/schema.ts
+++ b/apps/web/lib/integrations/hubspot/schema.ts
@@ -85,6 +85,6 @@ export const hubSpotLeadEventSchema = z.object({
export const hubSpotSaleEventSchema = z.object({
objectId: z.number(),
subscriptionType: z.literal("object.propertyChange"),
- propertyName: z.enum(["lifecyclestage", "dealstage"]),
- propertyValue: z.string(),
+ propertyName: z.literal("dealstage"),
+ propertyValue: z.string(), // eg: closedwon
});