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.

Filter the restrictedTokens by workspaceId

Kiran K79caa5e4b14c
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/users/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/users/route.ts
index fb6f886ccd..1095fccabf 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/users/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/users/route.ts
@@ -41,6 +41,7 @@ export const GET = withWorkspace(
lastUsed: true,
},
where: {
+ projectId: workspace.id,
lastUsed: {
not: null,
},