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 updates

Steven Tey75f9fa23bfba
diff --git a/apps/web/app/api/utm/route.ts b/apps/web/app/api/utm/route.ts
index 49f5e22f08..25678bed27 100644
--- a/apps/web/app/api/utm/route.ts
+++ b/apps/web/app/api/utm/route.ts
@@ -12,7 +12,7 @@ export const GET = withWorkspace(
projectId: workspace.id,
},
orderBy: {
- updatedAt: "desc",
+ name: "asc",
},
include: {
user: true,
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/usage/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/billing/usage/route.ts
index 87d54c7515..ccfb60c03f 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/usage/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/usage/route.ts
@@ -11,7 +11,7 @@ export const GET = withWorkspace(async ({ searchParams, workspace }) => {
const { firstDay, lastDay } = getFirstAndLastDay(billingCycleStart);
const pipe = tb.buildPipe({
- pipe: `v1_usage`,
+ pipe: "v1_usage",
// we extend this here since we don't need to include all the additional parameters
// in the actual request query schema
parameters: usageQuerySchema.extend({
diff --git a/apps/web/prisma/schema/utm.prisma b/apps/web/prisma/schema/utm.prisma
index 5b3c0ea8aa..4fd0e2db14 100644
--- a/apps/web/prisma/schema/utm.prisma
+++ b/apps/web/prisma/schema/utm.prisma
@@ -24,5 +24,4 @@ model UtmTemplate {
@@index(userId)
@@index(projectId)
@@unique([projectId, name])
- @@index(updatedAt(sort: Desc))
}
diff --git a/packages/utils/src/constants/dub-domains.ts b/packages/utils/src/constants/dub-domains.ts
index 158a7dd569..be3455a300 100644
--- a/packages/utils/src/constants/dub-domains.ts
+++ b/packages/utils/src/constants/dub-domains.ts
@@ -69,9 +69,15 @@ export const DUB_DOMAINS = [
primary: false,
archived: false,
placeholder: "https://cal.com/steven",
- allowedHostnames: ["cal.com", "calendly.com"],
+ allowedHostnames: [
+ "cal.com",
+ "calendly.com",
+ "chillipiper.com",
+ "hubspot.com",
+ "savvycal.com",
+ ],
description:
- "Branded domain for your calendar links (Cal.com, Calendly, etc.).",
+ "Branded domain for your scheduling links (Cal.com, Calendly, etc.).",
projectId: DUB_WORKSPACE_ID,
},
{