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.

Simplify Store API product visibility scope (#13575)

Damian Legawiecf5c0df48425b
diff --git a/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb b/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb
index 935f01822b..0d276e3e2d 100644
--- a/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb
+++ b/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb
@@ -31,7 +31,7 @@ module Spree
end
def scope
- super.available(Time.current, Spree::Current.currency)
+ super.active(Spree::Current.currency)
end
# these scopes are not automatically picked by ar_lazy_preload gem and we need to explicitly include them