Clarify CartService#populate arguments

This method doesn't use :products anywhere, it doesn't need to be passed in as part of the argument.
This commit is contained in:
Matt-Yorkley
2021-01-30 16:51:46 +00:00
parent 87bce505ec
commit d39468013e

View File

@@ -11,7 +11,7 @@ class CartController < BaseController
Spree::Adjustment.without_callbacks do
cart_service = CartService.new(order)
cart_service.populate(params.slice(:products, :variants, :quantity), true)
cart_service.populate(params.slice(:variants, :quantity), true)
if cart_service.valid?
order.update_distribution_charge!
order.cap_quantity_at_stock!