fix(map): ignore limit when using sitemapOnly

This commit is contained in:
Gergő Móricz 2024-11-15 21:03:20 +01:00
parent 63787bc504
commit a4d3dba865

View File

@ -61,7 +61,7 @@ export async function mapController(
sitemap.forEach((x) => { sitemap.forEach((x) => {
links.push(x.url); links.push(x.url);
}); });
links = links.slice(1, limit); // links = links.slice(1, limit); // don't slice, unnecessary
} }
} else { } else {
let urlWithoutWww = req.body.url.replace("www.", ""); let urlWithoutWww = req.body.url.replace("www.", "");