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.

Update analytics.ts

Steven Tey437b7bde6689
diff --git a/apps/web/lib/zod/schemas/analytics.ts b/apps/web/lib/zod/schemas/analytics.ts
index e36ed9af40..be5ed3b1ce 100644
--- a/apps/web/lib/zod/schemas/analytics.ts
+++ b/apps/web/lib/zod/schemas/analytics.ts
@@ -6,7 +6,7 @@ import { booleanQuerySchema } from ".";
export const getAnalyticsQuerySchema = z.object({
projectSlug: z
.string()
- .min(1, "Project slug is required.")
+ .optional()
.describe(
"The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",
),