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.

skip sending for click event

Kiran K4376337c057e
diff --git a/apps/web/lib/tinybird/record-click.ts b/apps/web/lib/tinybird/record-click.ts
index 872f53f443..d6242c9c08 100644
--- a/apps/web/lib/tinybird/record-click.ts
+++ b/apps/web/lib/tinybird/record-click.ts
@@ -49,9 +49,9 @@ export async function recordClick({
`recordClick:${ip}:${linkId}`,
);
- // if (!success) {
- // return null;
- // }
+ if (!success) {
+ return null;
+ }
const clickEvent = {
timestamp: new Date(Date.now()).toISOString(),
@@ -114,10 +114,10 @@ export async function recordClick({
),
// send the click event to the webhook endpoint
- sendToWebhook({
- webhookUrl: "https://webhook.site/3264bb14-82cf-4d79-b368-50491b2b9a8a",
- data: clickEvent,
- trigger: "link.clicked",
- }),
+ // sendToWebhook({
+ // webhook: null
+ // data: clickEvent,
+ // trigger: "link.clicked",
+ // }),
]);
}