Skip to content

Commit

Permalink
chore: clean some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Sep 27, 2024
1 parent 084a68a commit a8e605f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
23 changes: 0 additions & 23 deletions app/tasks/maintenance/fix_missing_champs_task.rb

This file was deleted.

15 changes: 0 additions & 15 deletions lib/tasks/data_fixer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,4 @@ namespace :data_fixer do
end
end
end

desc <<~EOD
Given a dossier_id in argument, run the DossierChampsMissing.
ex: rails data_fixer:dossier_missing_champ\[1\]
EOD
task :dossier_missing_champ, [:dossier_id] => :environment do |_t, args|
dossier = Dossier.find(args[:dossier_id])
result = DataFixer::DossierChampsMissing.new(dossier:).fix

if result > 0
rake_puts "Dossier#[#{args[:dossier_id]}] fixed"
else
rake_puts "Dossier#[#{args[:dossier_id]}] not fixed"
end
end
end

0 comments on commit a8e605f

Please sign in to comment.