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.

show totals

Steven Teyadefb9dc25be
diff --git a/apps/web/app/api/admin/impersonate/route.ts b/apps/web/app/api/admin/impersonate/route.ts
index c857a8c1cc..64c0be5fb7 100644
--- a/apps/web/app/api/admin/impersonate/route.ts
+++ b/apps/web/app/api/admin/impersonate/route.ts
@@ -32,8 +32,8 @@ export const POST = withAdmin(async ({ req }) => {
name: true,
slug: true,
plan: true,
- usage: true,
- linksUsage: true,
+ totalClicks: true,
+ totalLinks: true,
salesUsage: true,
foldersUsage: true,
},
@@ -52,8 +52,8 @@ export const POST = withAdmin(async ({ req }) => {
workspaces: response.projects.map(({ project }) => ({
...project,
id: prefixWorkspaceId(project.id),
- clicks: project.usage,
- links: project.linksUsage,
+ clicks: project.totalClicks,
+ links: project.totalLinks,
sales: project.salesUsage,
folders: project.foldersUsage,
})),