Skip to content

Commit

Permalink
Adjust flash message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Nov 28, 2023
1 parent 88df8cd commit 87342e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def csv_export
def csv_import
content = params[:file]&.read.to_s
Spree::PromotionBatches::PromoCodesImporter.new(content: content, promotion_batch_id: params[:id]).call
redirect_back fallback_location: admin_promotions_path, notice: "Promo codes uploaded"
redirect_back fallback_location: admin_promotions_path, notice: "Promo codes are being uploaded"
rescue Spree::PromotionBatches::PromoCodesImporter::Error => e
redirect_back fallback_location: admin_promotions_path, alert: e.message
end
Expand Down

0 comments on commit 87342e8

Please sign in to comment.