chore(correction): passing en_instruction resolve pending corrections

This commit is contained in:
Colin Darie 2023-04-04 10:29:27 +02:00
parent 5ab44fc7a9
commit 62cc9d30d8
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
4 changed files with 35 additions and 0 deletions

View file

@ -891,6 +891,8 @@ class Dossier < ApplicationRecord
.processed_at
save!
resolve_pending_correction!
if !disable_notification
NotificationMailer.send_en_instruction_notification(self).deliver_later
end