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.

Remove default values for interval and excludeRoot

Kiran K3228f43a1442
diff --git a/apps/web/lib/zod/schemas/analytics.ts b/apps/web/lib/zod/schemas/analytics.ts
index d69bb368f6..ff074ae347 100644
--- a/apps/web/lib/zod/schemas/analytics.ts
+++ b/apps/web/lib/zod/schemas/analytics.ts
@@ -16,7 +16,6 @@ export const getAnalyticsQuerySchema = z.object({
key: z.string().optional().describe("The short link slug."),
interval: z
.enum(intervals)
- .default("24h")
.optional()
.describe("The interval to retrieve analytics for."),
country: z
@@ -39,7 +38,6 @@ export const getAnalyticsQuerySchema = z.object({
.describe("The referer to retrieve analytics for."),
url: z.string().optional().describe("The URL to retrieve analytics for."),
excludeRoot: booleanQuerySchema
- .default("false")
.optional()
.describe("Whether to exclude the root link from the response."),
});