Skip to content

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

:art: Update database

Danielf4258c706d0b
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 5d31981dc3..a9fc72840f 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -645,6 +645,12 @@ func setAttributeViewColumnCalc(operation *Operation) (err error) {
func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr) {
for _, id := range operation.SrcIDs {
tree, err := tx.loadTree(id)
+ if nil == tree {
+ operation.IsDetached = true
+ } else {
+ operation.IsDetached = false
+ }
+
if nil != err && !operation.IsDetached {
logging.LogErrorf("load tree [%s] failed: %s", id, err)
return &TxErr{code: TxErrCodeBlockNotFound, id: id, msg: err.Error()}