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

Kiran Kb92d79400935
diff --git a/apps/web/lib/webhook/transform.ts b/apps/web/lib/webhook/transform.ts
index c80401c4d4..11e96fa36b 100644
--- a/apps/web/lib/webhook/transform.ts
+++ b/apps/web/lib/webhook/transform.ts
@@ -41,6 +41,7 @@ export const transformClickEventData = (
...click,
click: clickEventSchema.parse({
...click,
+ timestamp: new Date(click.timestamp),
id: click.clickId,
}),
});
@@ -66,7 +67,7 @@ export const transformLeadEventData = (data: any) => {
click: {
...lead,
id: lead.clickId,
- timestamp: new Date(lead.timestamp as string),
+ timestamp: new Date(lead.timestamp + "Z"),
},
// transformLink -> add shortLink, qrCode, workspaceId, etc.
link: transformLink(lead.link as ExpandedLink),