From 682735db19ca1355a950a55104e469e1055fd772 Mon Sep 17 00:00:00 2001 From: jazzari Date: Wed, 10 Jan 2024 15:51:28 -0300 Subject: [PATCH] fix: corregido espacio extra en linea 102 #13077 --- app/services/site_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/site_service.rb b/app/services/site_service.rb index 7e1bef6b..6f2bd96b 100644 --- a/app/services/site_service.rb +++ b/app/services/site_service.rb @@ -97,9 +97,9 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do FileUtils.mv (site.path_was, site.path) moved = true ActiveStorage::Blob.where(service_name: site.name_was).update_all(service_name: site.name) - site.save + site.save rescue StandardError - FileUtils.mv (site.path, site.path_was) if moved + FileUtils.mv(site.path, site.path_was) if moved raise end end