fix(fix_missing_champs_task): rake_puts present in spec, not in prod

This commit is contained in:
Martin 2024-03-19 09:18:30 +01:00
parent 4412aa7d9c
commit 291e6b0550

View file

@ -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