fix(task): fix scope in set_dossiers_processed_at

This commit is contained in:
Paul Chavard 2021-12-07 16:15:43 +01:00
parent 8778b24110
commit a5b3bc1e79

View file

@ -3,7 +3,7 @@ namespace :after_party do
task set_dossiers_processed_at: :environment do task set_dossiers_processed_at: :environment do
puts "Running deploy task 'set_dossiers_processed_at'" puts "Running deploy task 'set_dossiers_processed_at'"
dossiers = Dossier.termine.includes(:traitement) dossiers = Dossier.with_discarded.state_termine.includes(:traitement)
progress = ProgressReport.new(dossiers.count) progress = ProgressReport.new(dossiers.count)
dossiers.find_each do |dossier| dossiers.find_each do |dossier|