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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix issues with wished product controller.
Matthew Kennedyae76ab0f55d8
diff --git a/api/app/controllers/spree/api/v2/storefront/wished_products_controller.rb b/api/app/controllers/spree/api/v2/storefront/wished_products_controller.rbindex 6fb21c7f9c..fca1535c74 100644--- a/api/app/controllers/spree/api/v2/storefront/wished_products_controller.rb+++ b/api/app/controllers/spree/api/v2/storefront/wished_products_controller.rb@@ -2,7 +2,7 @@ module Spreemodule Apimodule V2module Storefront- class WishedProductsController < ::Spree::Api::V2::BaseController+ class WishedProductsController < ::Spree::Api::V2::ResourceControllerdef createspree_authorize! :create, Spree::WishedProduct@@ -52,7 +52,7 @@ module Spreeenddef wishlist- @wishlist ||= Spree::Wishlist.find_by!(access_hash: params[:wishlist_id])+ @wishlist ||= Spree::Wishlist.find_by!(token: params[:wishlist_id])enddef wished_product_attributesdiff --git a/api/app/controllers/spree/api/v2/storefront/wishlists_controller.rb b/api/app/controllers/spree/api/v2/storefront/wishlists_controller.rbindex 8daa4285a7..7acad9933c 100644--- a/api/app/controllers/spree/api/v2/storefront/wishlists_controller.rb+++ b/api/app/controllers/spree/api/v2/storefront/wishlists_controller.rb@@ -2,7 +2,7 @@ module Spreemodule Apimodule V2module Storefront- class WishlistsController < ::Spree::Api::V2::BaseController+ class WishlistsController < ::Spree::Api::V2::ResourceControllerinclude Spree::Api::V2::CollectionOptionsHelpersbefore_action :require_spree_current_user