From abd862b186dec3c1fd916398525335d1406eb80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Fri, 15 Nov 2024 21:00:20 +0100 Subject: [PATCH] fix(map): don't enforce limit when sitemapOnly is set --- apps/api/src/controllers/v1/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/controllers/v1/map.ts b/apps/api/src/controllers/v1/map.ts index 81739a0b9..0d0449aa9 100644 --- a/apps/api/src/controllers/v1/map.ts +++ b/apps/api/src/controllers/v1/map.ts @@ -61,7 +61,7 @@ export async function mapController( sitemap.forEach((x) => { links.push(x.url); }); - links = links.slice(1, limit); + // links = links.slice(1, limit); // don't slice, unnecessary } } else { let urlWithoutWww = req.body.url.replace("www.", "");