From 240e4e4702a04ffe345284f0de73ad3a3f774206 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 19 Jan 2025 23:17:12 -0300 Subject: [PATCH] Update auth.ts --- apps/api/src/controllers/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index 99ff71c7..16622bb0 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -192,6 +192,8 @@ export async function supaAuthenticateUser( if (token == "this_is_just_a_preview_token") { if (mode == RateLimiterMode.CrawlStatus) { rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token); + } else if (mode == RateLimiterMode.ExtractStatus) { + rateLimiter = getRateLimiter(RateLimiterMode.ExtractStatus, token); } else { rateLimiter = getRateLimiter(RateLimiterMode.Preview, token); }