Skip to content

Commit

Permalink
Adapt to new API of PopulatePromotionBatch class
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Dec 11, 2023
1 parent b160348 commit 3e9ef5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def duplicate
deny_list: params[:forbidden_phrases].split
}

Spree::Promotions::PopulatePromotionBatch.call(config)
Spree::Promotions::PopulatePromotionBatch.new(config).call

flash[:success] = Spree.t('promotion_cloned')
redirect_to spree.edit_admin_promotion_batch_url(@promotion_batch)
Expand Down

0 comments on commit 3e9ef5e

Please sign in to comment.