From 49106874b0f06a55b14487e6d7be9b34f346cc16 Mon Sep 17 00:00:00 2001 From: jazzari Date: Wed, 22 Nov 2023 14:17:57 +0100 Subject: [PATCH] fix: corregido metodo Rename en site_service.rb #13077 --- app/services/site_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/site_service.rb b/app/services/site_service.rb index f7cfd668..51146b13 100644 --- a/app/services/site_service.rb +++ b/app/services/site_service.rb @@ -93,7 +93,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do site.name = name Site.transaction do - raise ActiveRecord::Rollback if site.path + raise ActiveRecord::Rollback if File.exists?(site.path) FileUtils.mv (site.path_was, site.path) ActiveStorage::Blob.where(service_name: site.name_was).update_all(service_name: site.name) site.save