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.

remove temporary exclusion

Steven Tey0ec06a7cc702
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 88dd3614f6..4e0536fe28 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -236,18 +236,12 @@ export const withWorkspace = (
// Rate limit checks for API keys
let limit = 0;
- let interval: `${number} s` | `${number} m` =
- isAnalytics && token.projectId !== "cluh0o00y000211ly4lbh5zm4" // temporary exclusion
- ? "1 s"
- : "1 m";
+ let interval: `${number} s` | `${number} m` = isAnalytics
+ ? "1 s"
+ : "1 m";
const planLimit = getRatelimitForPlan(token.project?.plan || "free");
- limit =
- planLimit.limits[
- isAnalytics && token.projectId !== "cluh0o00y000211ly4lbh5zm4" // temporary exclusion
- ? "analyticsApi"
- : "api"
- ];
+ limit = planLimit.limits[isAnalytics ? "analyticsApi" : "api"];
const { success, headers } = await rateLimitRequest({
identifier: `workspace:ratelimit:${hashedKey}`,