fix(v1): check-status for preview

This commit is contained in:
rafaelsideguide 2024-08-28 14:18:05 -03:00
parent 8fbff28009
commit 1c35534e2a

View File

@ -132,7 +132,11 @@ export async function supaAuthenticateUser(
let priceId: string | null = null;
if (token == "this_is_just_a_preview_token") {
if (mode == RateLimiterMode.CrawlStatus) {
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
} else {
rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
}
teamId = "preview";
} else {
normalizedApi = parseApi(token);