5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 01:06:21 +00:00

fix: error de sintaxis

This commit is contained in:
f 2024-03-26 12:43:58 -03:00
parent 06bde9f971
commit 5133eb1022
No known key found for this signature in database

View file

@ -95,7 +95,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
Site.transaction do Site.transaction do
raise ActiveRecord::Rollback if File.exists?(site.path) raise ActiveRecord::Rollback if File.exists?(site.path)
FileUtils.mv (site.path_was, site.path) FileUtils.mv(site.path_was, site.path)
moved = true moved = true
ActiveStorage::Blob.where(service_name: site.name_was).update_all(service_name: site.name) ActiveStorage::Blob.where(service_name: site.name_was).update_all(service_name: site.name)
site.save site.save