Reapply "fix(v1/crawl): always use sitemap"

This reverts commit 339b19ce9d.
This commit is contained in:
Nicolas 2024-10-01 14:03:07 -03:00
parent 339b19ce9d
commit 445fc432e9

View File

@ -85,9 +85,7 @@ export async function crawlController(
await saveCrawl(id, sc);
const sitemap = sc.crawlerOptions.ignoreSitemap
? null
: await crawler.tryGetSitemap();
const sitemap = await crawler.tryGetSitemap();
if (sitemap !== null && sitemap.length > 0) {
let jobPriority = 20;