Skip to content

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

:art: Update database

Daniel2b733a776ac1
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index a9fc72840f..5d31981dc3 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -645,12 +645,6 @@ 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()}