mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Add customer_id as an attribute to order_detailed_serializer
Therefor customer_id will be available on the order object for `/api/v0/orders/[ORDER_ID].json` endpoint
This commit is contained in:
@@ -10,7 +10,7 @@ module Api
|
||||
|
||||
has_many :payments, serializer: Api::PaymentSerializer
|
||||
|
||||
attributes :adjustments
|
||||
attributes :adjustments, :customer_id
|
||||
|
||||
def adjustments
|
||||
adjustments = object.all_adjustments.where(
|
||||
|
||||
Reference in New Issue
Block a user