This commit is contained in:
tt
2025-10-30 17:30:49 +08:00
parent 3689abbe92
commit 768256bb09

View File

@@ -115,7 +115,16 @@ func (wk *wukongDB) AddOrUpdateConversationsBatchIfNotExist(conversations []Conv
batchs = append(batchs, batch)
}
return Commits(batchs)
err := Commits(batchs)
if err != nil {
wk.Error("commits failed", zap.Error(err))
return err
}
// 智能更新缓存中的会话数据
wk.conversationCache.UpdateConversationsInCache(conversations)
return nil
}
func (wk *wukongDB) AddOrUpdateConversationsWithUser(uid string, conversations []Conversation) error {