The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add default
Kiran Kc7641de12edc
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex b53f312e9c..cdc16c3efd 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -23,6 +23,7 @@ export const GetLinksQuerySchema = z.object({sort: z.enum(["createdAt", "clicks", "lastClicked"]).optional()+ .default("createdAt").describe("The field to sort the links by. The default is `createdAt`, and sort order is always descending.",),@@ -34,6 +35,7 @@ export const GetLinksQuerySchema = z.object({showArchived: z.coerce.boolean().optional()+ .default(false).describe("Whether to include archived links in the response. Defaults to `false` if not provided.",),