Use OrderContents in LineItemsController and move enterprise fee updating logic

This commit is contained in:
Matt-Yorkley
2021-05-11 18:15:08 +01:00
parent a883b2cf63
commit f5c08baabb
3 changed files with 2 additions and 5 deletions

View File

@@ -81,7 +81,6 @@ module Api
quantity = params[:quantity].to_i
@order.contents.remove(variant, quantity, @shipment)
@order.recreate_all_fees!
@shipment.reload if @shipment.persisted?
render json: @shipment, serializer: Api::ShipmentSerializer, status: :ok