Skip to content

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

Update apps/api/src/controllers/v2/crawl-status.ts

Ademílson Tonato3d8e21e68beb
diff --git a/apps/api/src/controllers/v2/crawl-status.ts b/apps/api/src/controllers/v2/crawl-status.ts
index a68cd1ed2..a7a65f86b 100644
--- a/apps/api/src/controllers/v2/crawl-status.ts
+++ b/apps/api/src/controllers/v2/crawl-status.ts
@@ -485,7 +485,7 @@ export async function crawlStatusController(
}
// Check if we should warn about base domain for crawl results
- const resultCount = outputBulkB.data.length;
+ const resultCount = outputBulkA.completed ?? outputBulkA.total ?? outputBulkB.data.length;
if (!warning && resultCount <= 1) {
// Get the original crawl URL and options from stored crawl data
const crawl = await getCrawl(req.params.jobId);