From c8b243c655d1eb2a2861567e56b572dcd604e325 Mon Sep 17 00:00:00 2001 From: jazzari Date: Thu, 23 May 2024 14:53:53 -0300 Subject: [PATCH 1/2] fix: movido auto-publish concern a lib/concerns para uso general #13244 --- app/{services => lib}/concerns/auto_publish_concern.rb | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/{services => lib}/concerns/auto_publish_concern.rb (100%) diff --git a/app/services/concerns/auto_publish_concern.rb b/app/lib/concerns/auto_publish_concern.rb similarity index 100% rename from app/services/concerns/auto_publish_concern.rb rename to app/lib/concerns/auto_publish_concern.rb From ce4f9937fba24d14b18060fdc527a343411f2941 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 9 Oct 2024 16:54:46 -0300 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20solo=20indexar=20y=20publicar=20desp?= =?UTF-8?q?u=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