This commit is contained in:
Liang Ding 2022-11-22 00:41:42 +08:00
parent 44d149d392
commit 168d673a0c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -34,7 +34,7 @@ import (
func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {
headingID := operation.ID
tree, err := loadTreeByBlockID(headingID)
tree, err := tx.loadTree(headingID)
if nil != err {
return &TxErr{code: TxErrCodeBlockNotFound, id: headingID}
}
@ -69,7 +69,7 @@ func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {
func (tx *Transaction) doUnfoldHeading(operation *Operation) (ret *TxErr) {
headingID := operation.ID
tree, err := loadTreeByBlockID(headingID)
tree, err := tx.loadTree(headingID)
if nil != err {
return &TxErr{code: TxErrCodeBlockNotFound, id: headingID}
}