|
@@ -122,6 +122,8 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ FlushTxQueue()
|
|
|
+
|
|
|
srcTree, _ := LoadTreeByBlockID(srcID)
|
|
|
if nil == srcTree {
|
|
|
err = ErrBlockNotFound
|
|
@@ -274,6 +276,8 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|
|
}
|
|
|
|
|
|
func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (srcRootBlockID, newTargetPath string, err error) {
|
|
|
+ FlushTxQueue()
|
|
|
+
|
|
|
srcTree, _ := LoadTreeByBlockID(srcHeadingID)
|
|
|
if nil == srcTree {
|
|
|
err = ErrBlockNotFound
|