mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #9103 from jibees/add-customer-id-to-order-endpoint-on-api
API: Add customer_id as an attribute to the GET /orders/ORDER_ID 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