mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 13:36:22 +00:00
fix: corregido metodo Rename en site_service.rb #13077
This commit is contained in:
parent
b658ecc374
commit
49106874b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue