Skip to content

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

:art: Improve processing when a database-bound block changes its type https://github.com/siyuan-note/siyuan/issues/12152

Danielefb3c5dd36ea
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index a15060e32e..1c468c48dd 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -772,12 +772,8 @@ func (tx *Transaction) doDelete(operation *Operation) (ret *TxErr) {
return
}
- go func() {
- time.Sleep(50 * time.Millisecond)
- WaitForWritingFiles()
- syncDelete2AttributeView(node)
- syncDelete2Block(node)
- }()
+ syncDelete2AttributeView(node)
+ syncDelete2Block(node)
return
}