Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Change counter reset from page_links to links

Damian Legawiec862c4ea3a39d
diff --git a/core/db/migrate/20250913130044_add_page_links_counter_cache_to_spree_stores.rb b/core/db/migrate/20250913130044_add_page_links_counter_cache_to_spree_stores.rb
index 5422206784..cd0bcf3aa8 100644
--- a/core/db/migrate/20250913130044_add_page_links_counter_cache_to_spree_stores.rb
+++ b/core/db/migrate/20250913130044_add_page_links_counter_cache_to_spree_stores.rb
@@ -4,7 +4,7 @@ class AddPageLinksCounterCacheToSpreeStores < ActiveRecord::Migration[7.2]
Spree::Store.reset_column_information
Spree::Store.find_each do |store|
- Spree::Store.reset_counters(store.id, :page_links)
+ Spree::Store.reset_counters(store.id, :links)
end
end
end