From ce4f9937fba24d14b18060fdc527a343411f2941 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 9 Oct 2024 16:54:46 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20solo=20indexar=20y=20publicar=20despu?= =?UTF-8?q?=C3=A9s=20de=20crear?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #17534 closes #17533 --- app/services/site_service.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/services/site_service.rb b/app/services/site_service.rb index 64158e4a..68b2a1b4 100644 --- a/app/services/site_service.rb +++ b/app/services/site_service.rb @@ -38,11 +38,14 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do add_licencias && add_code_of_conduct && add_privacy_policy && - site.index_posts! && deploy end - auto_publish! + if site.persisted? + site.index_posts! + auto_publish! + end + site end