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.

Fix the metadata value in webhook payload

Kiran Kecf8d197e66e
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
index 0d874b25be..b2e01735b2 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
@@ -410,6 +410,7 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
eventName: "Checkout session completed",
link: linkUpdated,
customer,
+ metadata: null,
}),
});
}
@@ -423,6 +424,7 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
clickedAt: customer.clickedAt || customer.createdAt,
link: linkUpdated,
customer,
+ metadata: null,
}),
});
})(),
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
index b82d5c774f..0787510ca7 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
@@ -242,6 +242,7 @@ export async function invoicePaid(event: Stripe.Event) {
clickedAt: customer.clickedAt || customer.createdAt,
link: linkUpdated,
customer,
+ metadata: null,
}),
}),
);
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/utils.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/utils.ts
index 1219607b98..7d8a4eb544 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/utils.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/utils.ts
@@ -127,6 +127,7 @@ export async function createNewCustomer(event: Stripe.Event) {
eventName,
link: linkUpdated,
customer,
+ metadata: null,
}),
}),
diff --git a/apps/web/lib/integrations/shopify/create-lead.ts b/apps/web/lib/integrations/shopify/create-lead.ts
index 76980a2f64..9d8b7dc228 100644
--- a/apps/web/lib/integrations/shopify/create-lead.ts
+++ b/apps/web/lib/integrations/shopify/create-lead.ts
@@ -102,6 +102,7 @@ export async function createShopifyLead({
eventName,
link,
customer,
+ metadata: null,
}),
}),
);
diff --git a/apps/web/lib/integrations/shopify/create-sale.ts b/apps/web/lib/integrations/shopify/create-sale.ts
index 4ca5e10711..ca32690afa 100644
--- a/apps/web/lib/integrations/shopify/create-sale.ts
+++ b/apps/web/lib/integrations/shopify/create-sale.ts
@@ -133,6 +133,7 @@ export async function createShopifySale({
link,
clickedAt: customer.clickedAt || customer.createdAt,
customer,
+ metadata: null,
}),
}),
);