diff --git a/app/controllers/uni_updates_batches_controller.rb b/app/controllers/uni_updates_batches_controller.rb index d3c51727..7cd557cd 100644 --- a/app/controllers/uni_updates_batches_controller.rb +++ b/app/controllers/uni_updates_batches_controller.rb @@ -9,7 +9,7 @@ def show def destroy @uni_updates_batch = UniUpdatesBatch.find_by(batch_id: params[:id]) WebformsMailer.batch_delete_email(@uni_updates_batch).deliver_now - @uni_updates_batch.destroy + @uni_updates_batch.delete flash[:notice] = 'Batch erased!' redirect_to root_path end