mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🧑💻 Improve kernel API /api/block/updateBlock and /api/block/batchUpdateBlock https://github.com/siyuan-note/siyuan/issues/15301
This commit is contained in:
parent
049b4d4b4b
commit
70e31c71cc
9 changed files with 59 additions and 45 deletions
|
|
@ -922,7 +922,7 @@ func loadNodesByMode(node *ast.Node, inputIndex, mode, size int, isDoc, isHeadin
|
|||
return
|
||||
}
|
||||
|
||||
func writeTreeUpsertQueue(tree *parse.Tree) (err error) {
|
||||
func WriteTreeUpsertQueue(tree *parse.Tree) (err error) {
|
||||
size, err := filesys.WriteTree(tree)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
@ -944,7 +944,7 @@ func indexWriteTreeIndexQueue(tree *parse.Tree) (err error) {
|
|||
|
||||
func indexWriteTreeUpsertQueue(tree *parse.Tree) (err error) {
|
||||
treenode.UpsertBlockTree(tree)
|
||||
return writeTreeUpsertQueue(tree)
|
||||
return WriteTreeUpsertQueue(tree)
|
||||
}
|
||||
|
||||
func renameWriteJSONQueue(tree *parse.Tree) (err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue