The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Improve `/track/sale`
Steven Tey6d796d6c57a0
diff --git a/apps/web/app/api/track/sale/route.ts b/apps/web/app/api/track/sale/route.tsindex 317dcbf93b..205293bc17 100644--- a/apps/web/app/api/track/sale/route.ts+++ b/apps/web/app/api/track/sale/route.ts@@ -52,6 +52,8 @@ export const POST = withWorkspaceEdge(});if (!customer) {+ // instead of throwing an error, maybe we should return a 304 status code+ // and say that the customer was not found, so sale was not tracked?throw new DubApiError({code: "not_found",message: `Customer not found for externalId: ${customerExternalId}`,