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.

Small fixes

Steven Tey13be4f312e7a
diff --git a/apps/web/lib/webhook/transform.ts b/apps/web/lib/webhook/transform.ts
index aa899d8b4e..9e194edb46 100644
--- a/apps/web/lib/webhook/transform.ts
+++ b/apps/web/lib/webhook/transform.ts
@@ -29,9 +29,10 @@ export const transformWebhook = (webhook: TransformWebhookProps) => {
export const transformLinkEventData = (data: Link) => {
return LinkSchema.parse({
...data,
+ expiresAt: data.expiresAt?.toISOString() || null,
+ lastClicked: data.lastClicked?.toISOString() || null,
createdAt: data.createdAt.toISOString(),
updatedAt: data.updatedAt.toISOString(),
- expiresAt: data.expiresAt?.toISOString() || null,
});
};