Merge pull request #2063 from betagouv/fixes

Fixes
This commit is contained in:
gregoirenovel 2018-06-07 16:12:46 +02:00 committed by GitHub
commit 0a124e0fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
namespace :'2018_06_05_resend_attestation' do
namespace :'2018_06_05_resend_attestations' do
task set: :environment do
procedure = Procedure.find(4247)
dossiers = procedure.dossiers.includes(:attestation).where(state: 'accepte').select do |d|

View file

@ -29,7 +29,7 @@ namespace :'2018_06_05_send_new_attestation' do
41103
]
dossiers = ids.map { |id| Dossier.Dossier.find_by(id: id) }.compact
dossiers = ids.map { |id| Dossier.find_by(id: id) }.compact
dossiers.each do |dossier|
attestation = dossier.attestation