Skip to content

Commit

Permalink
fix: sitemap error for companies
Browse files Browse the repository at this point in the history
  • Loading branch information
evanp committed Nov 27, 2023
1 parent 36c4646 commit 434f4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/sitemap.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ router.get(
}
// Company sitemaps
for (let i = 0; i < 100; i++) {
items.push({url: [{loc: makeUrl(`/sitemap-company-${String(i).padStart(2, '0')}.xml`)}]})
items.push({sitemap: [{loc: makeUrl(`/sitemap-company-${String(i).padStart(2, '0')}.xml`)}]})
}
const results = {sitemapindex: items}
req.logger.debug(`formatted ${items.length} items`)
Expand Down

0 comments on commit 434f4ce

Please sign in to comment.