fix(crawler): bad urls from sitemap

This commit is contained in:
Gergő Móricz 2025-01-17 17:07:44 +01:00
parent 237d0dc197
commit 5992c57158

View File

@ -228,7 +228,7 @@ export class WebCrawler {
); );
leftOfLimit -= filteredLinks.length; leftOfLimit -= filteredLinks.length;
let uniqueURLs: string[] = []; let uniqueURLs: string[] = [];
for (const url of urls) { for (const url of filteredLinks) {
if ( if (
await redisConnection.sadd( await redisConnection.sadd(
"sitemap:" + this.jobId + ":links", "sitemap:" + this.jobId + ":links",