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 sample payloads

Kiran K64da94c83542
diff --git a/apps/web/lib/webhook/sample-events/lead-created.json b/apps/web/lib/webhook/sample-events/lead-created.json
index 4efa43cc1c..b38cfdd220 100644
--- a/apps/web/lib/webhook/sample-events/lead-created.json
+++ b/apps/web/lib/webhook/sample-events/lead-created.json
@@ -6,10 +6,12 @@
"name": "Tiny Beige Badger",
"email": "[email protected]",
"avatar": "https://api.dicebear.com/9.x/notionists/png?seed=cus_BH6tDUWc9n0Y2pf55tVbk1hc",
+ "country": "US",
"createdAt": "2025-01-14T04:49:23.385Z"
},
"click": {
"id": "GWGrkftJdYlZD2mq",
+ "timestamp": "2025-02-03T09:35:57.926Z",
"url": "https://github.com/dubinc/dub",
"country": "US",
"city": "San Jose",
diff --git a/apps/web/lib/webhook/sample-events/link-clicked.json b/apps/web/lib/webhook/sample-events/link-clicked.json
index 164c481a9e..13bf28a3f9 100644
--- a/apps/web/lib/webhook/sample-events/link-clicked.json
+++ b/apps/web/lib/webhook/sample-events/link-clicked.json
@@ -1,6 +1,7 @@
{
"click": {
"id": "yNrYm0F6r1KMnq6N",
+ "timestamp": "2025-02-03T09:35:57.926Z",
"url": "https://github.com/dubinc/dub",
"country": "US",
"city": "San Jose",
diff --git a/apps/web/lib/webhook/sample-events/sale-created.json b/apps/web/lib/webhook/sample-events/sale-created.json
index 4cec33b038..c140a95f0e 100644
--- a/apps/web/lib/webhook/sample-events/sale-created.json
+++ b/apps/web/lib/webhook/sample-events/sale-created.json
@@ -6,10 +6,12 @@
"name": "Rural Red Goldfish",
"email": "[email protected]",
"avatar": "https://api.dicebear.com/9.x/notionists/png?seed=cus_jTrfVKYN3Buc3F80JoqBiY0g",
+ "country": "US",
"createdAt": "2024-10-12T04:55:36.007Z"
},
"click": {
"id": "GWGrkftJdYlZD2mq",
+ "timestamp": "2025-02-03T09:35:57.926Z",
"url": "https://github.com/dubinc/dub",
"country": "US",
"city": "San Jose",
diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.ts
index 0f49f1ae74..4d81bc40af 100644
--- a/apps/web/tests/webhooks/index.test.ts
+++ b/apps/web/tests/webhooks/index.test.ts
@@ -72,8 +72,6 @@ const assertQstashMessage = async (
) => {
const qstashMessage = await qstash.messages.get(messageId);
- console.log(`Got qstash message for ${trigger}`, qstashMessage.messageId);
-
const callbackUrl = new URL(qstashMessage.callback!);
const failureCallbackUrl = new URL(qstashMessage.failureCallback!);
const receivedBody = JSON.parse(qstashMessage.body!) as WebhookEvent;