Skip to content

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

:art: Improve export database

Daniel84837e2c3849
diff --git a/kernel/model/export.go b/kernel/model/export.go
index fc8ff4d8dd..a0e015fa8f 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -1595,7 +1595,7 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
func exportRelationAvs(avID, exportStorageAvDir string) {
avIDs := hashset.New()
- walkRelationAvs(avID, exportStorageAvDir, avIDs)
+ walkRelationAvs(avID, avIDs)
for _, v := range avIDs.Values() {
relAvID := v.(string)
@@ -1610,7 +1610,7 @@ func exportRelationAvs(avID, exportStorageAvDir string) {
}
}
-func walkRelationAvs(avID, exportStorageAvDir string, exportAvIDs *hashset.Set) {
+func walkRelationAvs(avID string, exportAvIDs *hashset.Set) {
if exportAvIDs.Contains(avID) {
return
}
@@ -1628,7 +1628,7 @@ func walkRelationAvs(avID, exportStorageAvDir string, exportAvIDs *hashset.Set)
break
}
- walkRelationAvs(keyValues.Key.Relation.AvID, exportStorageAvDir, exportAvIDs)
+ walkRelationAvs(keyValues.Key.Relation.AvID, exportAvIDs)
}
}
}