The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix sale-created dub webhook
Steven Teyd99d03f5a302
diff --git a/apps/web/app/api/dub/webhook/sale-created.ts b/apps/web/app/api/dub/webhook/sale-created.tsindex 56275c9096..163aa968d2 100644--- a/apps/web/app/api/dub/webhook/sale-created.ts+++ b/apps/web/app/api/dub/webhook/sale-created.ts@@ -3,7 +3,7 @@ import { sendEmail } from "emails";import NewReferralSale from "emails/new-referral-sale";export async function saleCreated(data: any) {- const { link: referralLink } = data.sale;+ const { link: referralLink } = data;if (!referralLink) {return "Referral link not found in webhook payload";