Skip to content

Commit ff252ad

Browse files
Merge pull request #2396 from NCCE/3011-update-sitemap-with-new-all_records-method
Using all_record in sitemap Strapi lookups
2 parents 64f1558 + ecfa0ce commit ff252ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/sitemap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
# CMS Routes
5353
add "/privacy", changefreq: "monthly"
5454

55-
Cms::Collections::EnrichmentPage.all(1, 10).resources.each do |enrichment_page|
55+
Cms::Collections::EnrichmentPage.all_records.each do |enrichment_page|
5656
add cms_page_path(enrichment_page.slug), changefreq: "monthly", lastmod: enrichment_page.updated_at
5757
end
5858

59-
Cms::Collections::WebPage.all(1, 200).resources.each do |page|
59+
Cms::Collections::WebPage.all_records.each do |page|
6060
add cms_page_path(page.slug), changefreq: "monthly", lastmod: page.updated_at
6161
end
6262

0 commit comments

Comments
 (0)