Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

format

Kiran Keb422c6b2536
diff --git a/apps/web/lib/planetscale/get-link-via-edge.ts b/apps/web/lib/planetscale/get-link-via-edge.ts
index 95ac9d2d14..fc9f0a65be 100644
--- a/apps/web/lib/planetscale/get-link-via-edge.ts
+++ b/apps/web/lib/planetscale/get-link-via-edge.ts
@@ -1,7 +1,7 @@
import { punyEncode } from "@dub/utils";
import {
- decodeLinkIfCaseSensitive,
decodeKeyIfCaseSensitive,
+ decodeLinkIfCaseSensitive,
} from "../api/case-sensitive-short-links";
import { conn } from "./connection";
import { EdgeLinkProps } from "./types";
diff --git a/apps/web/lib/zod/schemas/analytics-response.ts b/apps/web/lib/zod/schemas/analytics-response.ts
index b010211ea3..3a1e9ddfd8 100644
--- a/apps/web/lib/zod/schemas/analytics-response.ts
+++ b/apps/web/lib/zod/schemas/analytics-response.ts
@@ -1,5 +1,4 @@
import { TRIGGER_TYPES } from "@/lib/analytics/constants";
-import { decodeShortLinkIfCaseSensitive } from "@/lib/api/case-sensitive-short-links";
import z from "@/lib/zod";
import { CONTINENT_CODES, COUNTRY_CODES } from "@dub/utils";
@@ -297,9 +296,7 @@ export const analyticsResponse = {
id: z.string().describe("The unique ID of the short link"),
domain: z.string().describe("The domain of the short link"),
key: z.string().describe("The key of the short link"),
- shortLink: z
- .string()
- .describe("The short link URL"),
+ shortLink: z.string().describe("The short link URL"),
url: z.string().describe("The destination URL of the short link"),
comments: z.string().nullish().describe("The comments of the short link"),
createdAt: z