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.

fix legibility

Steven Tey6afdffcf1f11
diff --git a/apps/web/app/api/edge/stats/[endpoint]/route.ts b/apps/web/app/api/edge/stats/[endpoint]/route.ts
index f53810915e..16bbca6674 100644
--- a/apps/web/app/api/edge/stats/[endpoint]/route.ts
+++ b/apps/web/app/api/edge/stats/[endpoint]/route.ts
@@ -27,7 +27,7 @@ export const GET = async (
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
15,
- endpoint !== "clicks" ? "1 h" : "10 s",
+ endpoint === "clicks" ? "10 s" : "1 h",
).limit(`${ip}:${domain}:${key}:${endpoint}`);
if (!success) {