🎨 Improve update time of database bound document blocks https://github.com/siyuan-note/siyuan/issues/11042

This commit is contained in:
Daniel 2024-04-15 20:56:46 +08:00
parent ee42be1729
commit 3403bdca99
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1245,6 +1245,7 @@ func createdUpdated(node *ast.Node) {
parents := treenode.ParentNodes(node)
for _, parent := range parents { // 更新所有父节点的更新时间字段
parent.SetIALAttr("updated", updated)
cache.PutBlockIAL(parent.ID, parse.IAL2Map(parent.KramdownIAL))
}
}