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.

Fix Users Platform API endpoint

Damian Legawiecb3ff7d03bd53
diff --git a/api/app/controllers/spree/api/v2/platform/users_controller.rb b/api/app/controllers/spree/api/v2/platform/users_controller.rb
index 8db84d61a0..8a708df3ad 100644
--- a/api/app/controllers/spree/api/v2/platform/users_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/users_controller.rb
@@ -16,6 +16,11 @@ module Spree
def scope_includes
[:ship_address, :bill_address]
end
+
+ # we need to define this here as developers can configure their own `user_class`
+ def model_param_name
+ 'user'
+ end
end
end
end