Skip to content

Commit

Permalink
fix(map): don't enforce limit when sitemapOnly is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Nov 15, 2024
1 parent 519f4ff commit abd862b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/controllers/v1/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.", "");
Expand Down

0 comments on commit abd862b

Please sign in to comment.