Skip to content

Commit

Permalink
update sample payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
devkiran committed Feb 3, 2025
1 parent 772337d commit 64da94c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/web/lib/webhook/sample-events/lead-created.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions apps/web/lib/webhook/sample-events/link-clicked.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/lib/webhook/sample-events/sale-created.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions apps/web/tests/webhooks/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64da94c

Please sign in to comment.