Merge pull request #2598 from betagouv/fix-task

Fix the 2018_09_12_fix_templates task
This commit is contained in:
gregoirenovel 2018-09-18 10:44:35 +02:00 committed by GitHub
commit 3229f542dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ namespace :'2018_09_12_fix_templates' do
task run: :environment do task run: :environment do
dossiers_with_invalid_attestations = find_dossiers_with_sent_and_invalid_attestations dossiers_with_invalid_attestations = find_dossiers_with_sent_and_invalid_attestations
fix_templates fix_templates
fixed_attestations = regenerate_attestations(dossiers_with_invalid_attestations) fixed_attestations = delete_then_regenerate_attestations(dossiers_with_invalid_attestations)
send_regenerated_attestations(dossiers_with_invalid_attestations) send_regenerated_attestations(dossiers_with_invalid_attestations)
end end