mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Load all shops that a user is associated with as a customer
Regardless of the presence of an order
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Api
|
||||
class CustomersController < BaseController
|
||||
def index
|
||||
@customers = current_api_user.customers
|
||||
@customers = current_api_user.customers.of_regular_shops
|
||||
render json: @customers, each_serializer: CustomerSerializer
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user