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.

v2_usage

Steven Tey9f9c4333dafc
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 872c191eae..088bec0c42 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: "v2_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({