Add files via upload

This commit is contained in:
公明
2025-12-25 01:55:08 +08:00
committed by GitHub
parent 26f131bb77
commit e818ea61de
3 changed files with 15 additions and 8 deletions
+3 -2
View File
@@ -200,9 +200,10 @@ func (db *DB) ListConversations(limit, offset int, search string) ([]*Conversati
// UpdateConversationTitle 更新对话标题
func (db *DB) UpdateConversationTitle(id, title string) error {
// 注意:不更新 updated_at,因为重命名操作不应该改变对话的更新时间
_, err := db.Exec(
"UPDATE conversations SET title = ?, updated_at = ? WHERE id = ?",
title, time.Now(), id,
"UPDATE conversations SET title = ? WHERE id = ?",
title, id,
)
if err != nil {
return fmt.Errorf("更新对话标题失败: %w", err)