0

Update rate-limiter.ts

This commit is contained in:
Nicolas 2024-06-06 09:31:44 -07:00
parent 01503c1fbf
commit 0310da6729

View File

@ -16,7 +16,7 @@ const RATE_LIMITS = {
scrape: { scrape: {
free: 5, free: 5,
starter: 20, starter: 20,
standard: 40, standard: 50,
standardOld: 40, standardOld: 40,
scale: 50, scale: 50,
hobby: 10, hobby: 10,
@ -68,5 +68,6 @@ export function getRateLimiter(mode: RateLimiterMode, token: string, plan?: stri
const planKey = plan ? plan.replace("-", "") : "starter"; const planKey = plan ? plan.replace("-", "") : "starter";
const points = rateLimitConfig[planKey] || rateLimitConfig.preview; const points = rateLimitConfig[planKey] || rateLimitConfig.preview;
return createRateLimiter(`${mode}-${planKey}`, points); return createRateLimiter(`${mode}-${planKey}`, points);
} }