Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(api): validate team ownership when appending to an existing crawl (#2637)
tom71fa1d6bdb40
diff --git a/apps/api/src/controllers/v2/batch-scrape.ts b/apps/api/src/controllers/v2/batch-scrape.tsindex 7614f513b..e755fba5b 100644--- a/apps/api/src/controllers/v2/batch-scrape.ts+++ b/apps/api/src/controllers/v2/batch-scrape.ts@@ -161,6 +161,15 @@ export async function batchScrapeController(zeroDataRetention,};+ if (req.body.appendToId) {+ if (!sc || sc.team_id !== req.auth.team_id) {+ return res.status(404).json({+ success: false,+ error: "Job not found",+ });+ }+ }+if (!req.body.appendToId) {await crawlGroup.addGroup(id,