From dd7840cdc4d0fc1878a03801f27114606b935336 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Fri, 25 Sep 2020 10:59:46 +0200 Subject: [PATCH] Notify new draft after dossier commit --- app/models/dossier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dossier.rb b/app/models/dossier.rb index f3546e7cb..6b2c0dd58 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -308,7 +308,7 @@ class Dossier < ApplicationRecord after_save :send_dossier_received after_save :send_web_hook - after_create :send_draft_notification_email + after_save_commit :send_draft_notification_email validates :user, presence: true validates :individual, presence: true, if: -> { revision.procedure.for_individual? }