refactor: refresh 25.04

This commit is contained in:
Jacky 2025-04-19 17:55:17 +08:00
parent 818bf9bcf6
commit b63dbe1e50
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
98 changed files with 5283 additions and 4817 deletions

View file

@ -58,6 +58,17 @@ func Rename(oldName string, newName string) (err error) {
return fmt.Errorf("%s", output)
}
// update ChatGPT history
g := query.ChatGPTLog
_, _ = g.Where(g.Name.Eq(oldName)).Update(g.Name, newName)
// update config history
b := query.ConfigBackup
_, _ = b.Where(b.FilePath.Eq(oldPath)).Updates(map[string]interface{}{
"filepath": newPath,
"name": newName,
})
go syncRename(oldName, newName)
return