The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix test
Steven Tey869672a4d93f
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.tsindex 9e4410d315..863de7a606 100644--- a/apps/web/lib/api/links/process-link.ts+++ b/apps/web/lib/api/links/process-link.ts@@ -72,7 +72,7 @@ export async function processLink<T extends Record<string, any>>({if (!isValidUrl(url)) {return {link: payload,- error: "Invalid destination url.",+ error: "Invalid destination URL",code: "unprocessable_entity",};}@@ -80,7 +80,7 @@ export async function processLink<T extends Record<string, any>>({} else if (key !== "_root") {return {link: payload,- error: "Missing destination url.",+ error: "Missing destination URL",code: "bad_request",};}diff --git a/apps/web/tests/links/create-link-error.test.ts b/apps/web/tests/links/create-link-error.test.tsindex 4bf94ce775..321af4df8b 100644--- a/apps/web/tests/links/create-link-error.test.ts+++ b/apps/web/tests/links/create-link-error.test.ts@@ -24,7 +24,7 @@ const cases = [},},{- name: "create link with invalid destination url",+ name: "create link with invalid destination URL",body: {domain,url: "invalid",@@ -34,7 +34,7 @@ const cases = [data: {error: {code: "unprocessable_entity",- message: "custom: url: Invalid URL",+ message: "Invalid destination URL",doc_url:"https://dub.co/docs/api-reference/errors#unprocessable-entity",},