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 unused zod schema properties (#3161)

Kiran Kce8e55b53eba
diff --git a/apps/web/lib/zod/schemas/analytics.ts b/apps/web/lib/zod/schemas/analytics.ts
index 0cf4754b4d..45651e7fac 100644
--- a/apps/web/lib/zod/schemas/analytics.ts
+++ b/apps/web/lib/zod/schemas/analytics.ts
@@ -311,12 +311,11 @@ export const analyticsFilterTB = z
tenantId: true,
folderId: true,
groupId: true,
- sortBy: true,
}),
);
export const eventsFilterTB = analyticsFilterTB
- .omit({ granularity: true, timezone: true, page: true, sortBy: true })
+ .omit({ granularity: true, timezone: true })
.and(
z.object({
offset: z.coerce.number().default(0),
@@ -333,7 +332,7 @@ const sortOrder = z
.describe("The sort order. The default is `desc`.");
export const eventsQuerySchema = analyticsQuerySchema
- .omit({ groupBy: true, sortBy: true })
+ .omit({ groupBy: true })
.extend({
event: z
.enum(EVENT_TYPES)