app/controllers/spree/api/promotions_controller.rb in solidus_api-2.2.2 vs app/controllers/spree/api/promotions_controller.rb in solidus_api-2.3.0.beta1

- old
+ new

@@ -18,10 +18,10 @@ return if @current_user_roles.include?("admin") unauthorized && return end def load_promotion - @promotion = Spree::Promotion.find_by_id(params[:id]) || Spree::Promotion.with_coupon_code(params[:id]) + @promotion = Spree::Promotion.find_by(id: params[:id]) || Spree::Promotion.with_coupon_code(params[:id]) end end end end