From 291e6b0550c81db733b5671df289e511871c157a Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 19 Mar 2024 09:18:30 +0100 Subject: [PATCH] fix(fix_missing_champs_task): `rake_puts` present in spec, not in prod --- app/tasks/maintenance/fix_missing_champs_task.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/tasks/maintenance/fix_missing_champs_task.rb b/app/tasks/maintenance/fix_missing_champs_task.rb index 4f22ec5a3..c7c92eb1a 100644 --- a/app/tasks/maintenance/fix_missing_champs_task.rb +++ b/app/tasks/maintenance/fix_missing_champs_task.rb @@ -15,8 +15,7 @@ module Maintenance # rubocop:enable Rails/FindEach maybe_fixable = [dossier, dossier.editing_forks.first].compact.any? { _1.champs.size < _1.revision.types_de_champ.size } if maybe_fixable - added_champ_count = DataFixer::DossierChampsMissing.new(dossier:).fix - rake_puts "fixed: #{dossier.id}, adding: #{added_champ_count}" + DataFixer::DossierChampsMissing.new(dossier:).fix end end end