mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
refactor: refresh 25.04
This commit is contained in:
parent
818bf9bcf6
commit
b63dbe1e50
98 changed files with 5283 additions and 4817 deletions
|
@ -110,6 +110,12 @@ func Rename(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
b := query.ConfigBackup
|
||||
_, _ = b.Where(b.FilePath.Eq(origFullPath)).Updates(map[string]interface{}{
|
||||
"filepath": newFullPath,
|
||||
"name": json.NewName,
|
||||
})
|
||||
|
||||
if len(json.SyncNodeIds) > 0 {
|
||||
err = config.SyncRenameOnRemoteServer(origFullPath, newFullPath, json.SyncNodeIds)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue