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.

small fixes

Steven Tey42a95b6b5677
diff --git a/apps/web/app/api/links/export/route.ts b/apps/web/app/api/links/export/route.ts
index 9ef1b7ca85..596a934fea 100644
--- a/apps/web/app/api/links/export/route.ts
+++ b/apps/web/app/api/links/export/route.ts
@@ -56,7 +56,11 @@ export const GET = withWorkspace(
projectId: workspace.id,
archived: showArchived ? undefined : false,
createdAt: {
- gte: start ?? INTERVAL_DATA[interval ?? "all"].startDate,
+ gte:
+ start ??
+ (interval && interval !== "all"
+ ? INTERVAL_DATA[interval].startDate
+ : undefined),
lte: end ?? new Date(),
},
...(domain && { domain }),
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.ts
index 33ee3e202f..1951f5c7bf 100644
--- a/apps/web/lib/zod/schemas/customers.ts
+++ b/apps/web/lib/zod/schemas/customers.ts
@@ -52,7 +52,7 @@ export const CustomerSchema = z.object({
id: z
.string()
.describe(
- "The unique ID of the customer to update. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).",
+ "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).",
),
externalId: z
.string()