The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add missing conversion log + nav changes
Steven Tey2ce46b9af78b
diff --git a/apps/web/lib/api/conversions/track-sale.ts b/apps/web/lib/api/conversions/track-sale.tsindex 4045a45c52..48656fb255 100644--- a/apps/web/lib/api/conversions/track-sale.ts+++ b/apps/web/lib/api/conversions/track-sale.ts@@ -97,9 +97,20 @@ export const trackSale = async ({);if (!cachedLeadEvent) {+ const errorMessage = `Lead event not found for externalId: ${customerExternalId} and leadEventName: ${leadEventName}`;++ waitUntil(+ logConversionEvent({+ workspace_id: workspace.id,+ path: "/track/sale",+ body: JSON.stringify(rawBody),+ error: errorMessage,+ }),+ );+throw new DubApiError({code: "not_found",- message: `Lead event not found for externalId: ${customerExternalId} and eventName: ${leadEventName}`,+ message: errorMessage,});}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 5fb36b91f3..62fe6dfa82 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub",- "version": "0.2.54",+ "version": "0.2.55","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/ui/src/nav/nav.tsx b/packages/ui/src/nav/nav.tsxindex 486e9bb8f3..b29bb2778c 100644--- a/packages/ui/src/nav/nav.tsx+++ b/packages/ui/src/nav/nav.tsx@@ -28,12 +28,12 @@ export const navItems = [content: ProductContent,childItems: FEATURES_LIST,segments: [- "/home",- "/partners",+ "/links","/analytics",- "/features",- "/compare",+ "/partners","/integrations",+ "/compare",+ "/features",],},{