User specs in the green
This commit is contained in:
@@ -75,7 +75,8 @@ module Users
|
||||
list = List.from_table( table, current_user )
|
||||
res[:active_list_id] = list.id # used to set the active list in the app
|
||||
order = list.place_order product_orders: product_orders, user: current_user, first_order: true
|
||||
res[:payload] = JSONAPI::Serializer.serialize(order, serializer: Users::OrderSerializer, include: %w[list list.users product_orders])
|
||||
res[:supplier_orders_placed_count] = list.supplier.orders_placed_count
|
||||
res[:payload] = Users::OrderSerializer.serialize(order, include: %w[list list.users product_orders])
|
||||
end
|
||||
render json: res
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user