refactor(dossier): use touch
This commit is contained in:
parent
7932085976
commit
c2c26719d3
4 changed files with 12 additions and 6 deletions
|
@ -57,7 +57,7 @@ module CreateAvisConcern
|
|||
persisted, failed = create_results.partition(&:persisted?)
|
||||
|
||||
if persisted.any?
|
||||
dossier.update!(last_avis_updated_at: Time.zone.now)
|
||||
dossier.touch(:last_avis_updated_at)
|
||||
sent_emails_addresses = []
|
||||
persisted.each do |avis|
|
||||
avis.dossier.demander_un_avis!(avis)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue