commit
0a124e0fd2
2 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue