5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 03:46:23 +00:00

fix: corregido espacio extra en linea 102 #13077
All checks were successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful

This commit is contained in:
jazzari 2024-01-10 15:51:28 -03:00
parent a1daa759ec
commit 682735db19

View file

@ -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