fix(task): fix scope in set_dossiers_processed_at
This commit is contained in:
parent
8778b24110
commit
a5b3bc1e79
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue