fix(v1): check-status for preview
This commit is contained in:
parent
8fbff28009
commit
1c35534e2a
|
@ -132,7 +132,11 @@ export async function supaAuthenticateUser(
|
||||||
let priceId: string | null = null;
|
let priceId: string | null = null;
|
||||||
|
|
||||||
if (token == "this_is_just_a_preview_token") {
|
if (token == "this_is_just_a_preview_token") {
|
||||||
rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
|
if (mode == RateLimiterMode.CrawlStatus) {
|
||||||
|
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
|
||||||
|
} else {
|
||||||
|
rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
|
||||||
|
}
|
||||||
teamId = "preview";
|
teamId = "preview";
|
||||||
} else {
|
} else {
|
||||||
normalizedApi = parseApi(token);
|
normalizedApi = parseApi(token);
|
||||||
|
|
Loading…
Reference in New Issue