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