Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve recent doc

Danielc0e947d2ac0c
diff --git a/kernel/api/storage.go b/kernel/api/storage.go
index 0cd1a7de2e..fa223bc61b 100644
--- a/kernel/api/storage.go
+++ b/kernel/api/storage.go
@@ -293,6 +293,10 @@ func updateRecentDocCloseTime(c *gin.Context) {
return
}
+ if nil == arg["rootID"] {
+ return
+ }
+
rootID := arg["rootID"].(string)
err := model.UpdateRecentDocCloseTime(rootID)
if err != nil {