The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix tests
Steven Tey6c4c5fabf1ef
diff --git a/apps/web/app/api/track/lead/route.ts b/apps/web/app/api/track/lead/route.tsindex f41c7f7a78..fb8f7e101f 100644--- a/apps/web/app/api/track/lead/route.ts+++ b/apps/web/app/api/track/lead/route.ts@@ -61,7 +61,7 @@ export const POST = withWorkspaceEdge(if (!ok) {throw new DubApiError({code: "conflict",- message: `Customer with externalId "${customerExternalId}" and event name "${eventName}" has already been recorded.`,+ message: `Customer with externalId ${customerExternalId} and event name ${eventName} has already been recorded.`,});}// Find click eventdiff --git a/apps/web/tests/tracks/track-lead.test.ts b/apps/web/tests/tracks/track-lead.test.tsindex 18e2d67f81..b9a8ef8c88 100644--- a/apps/web/tests/tracks/track-lead.test.ts+++ b/apps/web/tests/tracks/track-lead.test.ts@@ -55,7 +55,7 @@ describe("POST /track/lead", async () => {error: {code: "conflict",doc_url: "https://dub.co/docs/api-reference/errors#conflict",- message: `Customer with externalId ${customer.id} and event name: Signup has already been recorded in the last hour.`,+ message: `Customer with externalId ${customer.id} and event name Signup has already been recorded.`,},});});