Skip to content

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

more test fixes

Gergő Móricz113a2bf81baa
diff --git a/apps/api/src/controllers/v2/batch-scrape.ts b/apps/api/src/controllers/v2/batch-scrape.ts
index 1b43809ae..aaf18c123 100644
--- a/apps/api/src/controllers/v2/batch-scrape.ts
+++ b/apps/api/src/controllers/v2/batch-scrape.ts
@@ -149,7 +149,7 @@ export async function batchScrapeController(
integration: req.body.integration,
crawl_id: id,
sitemapped: true,
- v1: false,
+ v1: true,
webhook: req.body.webhook,
internalOptions: sc.internalOptions,
zeroDataRetention,
diff --git a/apps/api/src/routes/v2.ts b/apps/api/src/routes/v2.ts
index deea491c9..ead47a4b2 100644
--- a/apps/api/src/routes/v2.ts
+++ b/apps/api/src/routes/v2.ts
@@ -66,6 +66,12 @@ v2Router.post(
wrap(crawlParamsPreviewController),
);
+v2Router.get(
+ "/crawl/ongoing",
+ authMiddleware(RateLimiterMode.CrawlStatus),
+ wrap(ongoingCrawlsController),
+);
+
v2Router.get(
"/crawl/:jobId",
authMiddleware(RateLimiterMode.CrawlStatus),
@@ -83,9 +89,3 @@ v2Router.get(
authMiddleware(RateLimiterMode.CrawlStatus),
wrap(crawlErrorsController),
);
-
-v2Router.get(
- "/crawl/ongoing",
- authMiddleware(RateLimiterMode.CrawlStatus),
- wrap(ongoingCrawlsController),
-);
\ No newline at end of file