Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(credits): allow crawl limit auto-adjustment when limit exceeds remaining credits (#3334)

firecrawl-spring[bot]925b98b97873
diff --git a/apps/api/src/routes/shared.ts b/apps/api/src/routes/shared.ts
index 112f6b4ae..174bacfdf 100644
--- a/apps/api/src/routes/shared.ts
+++ b/apps/api/src/routes/shared.ts
@@ -177,7 +177,7 @@ export function checkCreditsMiddleware(
req.account = { remainingCredits };
if (!success) {
if (
- !minimum &&
+ !_minimum &&
req.body &&
(req.body as any).limit !== undefined &&
remainingCredits > 0