From 05c0e42c2e1542cd6c5c285b139f201e81188bd2 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Tue, 26 Sep 2023 12:39:08 +0200
Subject: [PATCH] after_save_commit

---
 app/models/communication/website/with_deuxfleurs.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/website/with_deuxfleurs.rb b/app/models/communication/website/with_deuxfleurs.rb
index cbefc76a5..b7b31e60f 100644
--- a/app/models/communication/website/with_deuxfleurs.rb
+++ b/app/models/communication/website/with_deuxfleurs.rb
@@ -5,7 +5,7 @@ module Communication::Website::WithDeuxfleurs
 
   included do
     before_save :deuxfleurs_setup, if: :deuxfleurs_hosting
-    after_commit :deuxfleurs_preload, if: :deuxfleurs_hosting
+    after_save_commit :deuxfleurs_preload, if: :deuxfleurs_hosting
   end
 
   protected
-- 
GitLab