mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
c1c6f435b6
commit
f0750b29ca
1 changed files with 6 additions and 0 deletions
|
|
@ -1293,6 +1293,12 @@ func reindexTree(rootID string, i, size int) {
|
|||
return
|
||||
}
|
||||
|
||||
updated := tree.Root.IALAttr("updated")
|
||||
if "" == updated {
|
||||
updated = util.TimeFromID(tree.Root.ID)
|
||||
tree.Root.SetIALAttr("updated", updated)
|
||||
writeJSONQueue(tree)
|
||||
}
|
||||
treenode.ReindexBlockTree(tree)
|
||||
sql.UpsertTreeQueue(tree)
|
||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(183), i, size, path.Base(tree.HPath)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue