Skip to content

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

fix(api/v1/crawl/ongoing): only crawls, no batch scrape (#1701)

Gergő Móricz439619ffc66b
diff --git a/apps/api/src/controllers/v1/crawl-ongoing.ts b/apps/api/src/controllers/v1/crawl-ongoing.ts
index 0b8ef1446..7839d5fc1 100644
--- a/apps/api/src/controllers/v1/crawl-ongoing.ts
+++ b/apps/api/src/controllers/v1/crawl-ongoing.ts
@@ -17,7 +17,7 @@ export async function ongoingCrawlsController(
) {
const ids = await getCrawlsByTeamId(req.auth.team_id);
- const crawls = (await Promise.all(ids.map(async id => ({ ...(await getCrawl(id)), id })))).filter((crawl) => crawl !== null && !crawl.cancelled);
+ const crawls = (await Promise.all(ids.map(async id => ({ ...(await getCrawl(id)), id })))).filter((crawl) => crawl !== null && !crawl.cancelled && crawl.crawlerOptions);
res.status(200).json({
success: true,