From 0310da67290b73cae4810ea030f943d39b9b5239 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 6 Jun 2024 09:31:44 -0700 Subject: [PATCH] Update rate-limiter.ts --- apps/api/src/services/rate-limiter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.ts index fc73df1..51543a6 100644 --- a/apps/api/src/services/rate-limiter.ts +++ b/apps/api/src/services/rate-limiter.ts @@ -16,7 +16,7 @@ const RATE_LIMITS = { scrape: { free: 5, starter: 20, - standard: 40, + standard: 50, standardOld: 40, scale: 50, hobby: 10, @@ -68,5 +68,6 @@ export function getRateLimiter(mode: RateLimiterMode, token: string, plan?: stri const planKey = plan ? plan.replace("-", "") : "starter"; const points = rateLimitConfig[planKey] || rateLimitConfig.preview; + return createRateLimiter(`${mode}-${planKey}`, points); }