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 interval/start/end for now

Steven Tey9ecf92ef9328
diff --git a/apps/web/lib/zod/schemas/payouts.ts b/apps/web/lib/zod/schemas/payouts.ts
index 3275f7c0b7..c8fc97b5b5 100644
--- a/apps/web/lib/zod/schemas/payouts.ts
+++ b/apps/web/lib/zod/schemas/payouts.ts
@@ -1,5 +1,3 @@
-import { intervals } from "@/lib/analytics/constants";
-import { parseDateSchema } from "@/lib/zod/schemas/utils";
import { PayoutStatus } from "@dub/prisma/client";
import { z } from "zod";
import { getPaginationQuerySchema } from "./misc";
@@ -33,9 +31,6 @@ export const payoutsQuerySchema = z
.enum(["createdAt", "periodStart", "amount", "paidAt"])
.default("createdAt"),
sortOrder: z.enum(["asc", "desc"]).default("desc"),
- interval: z.enum(intervals).default("all"),
- start: parseDateSchema.optional(),
- end: parseDateSchema.optional(),
})
.merge(getPaginationQuerySchema({ pageSize: PAYOUTS_MAX_PAGE_SIZE }));
@@ -46,9 +41,6 @@ export const payoutsCountQuerySchema = payoutsQuerySchema
partnerId: true,
eligibility: true,
invoiceId: true,
- interval: true,
- start: true,
- end: true,
})
.merge(
z.object({