mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
680ff25ce4
commit
7b97c5d41a
1 changed files with 2 additions and 4 deletions
|
|
@ -32,13 +32,13 @@ func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr)
|
||||||
tree, err := tx.loadTree(firstSrcID)
|
tree, err := tx.loadTree(firstSrcID)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogErrorf("load tree [%s] failed: %s", firstSrcID, err)
|
logging.LogErrorf("load tree [%s] failed: %s", firstSrcID, err)
|
||||||
return &TxErr{code: TxErrCodeBlockNotFound, id: firstSrcID}
|
return &TxErr{code: TxErrCodeBlockNotFound, id: firstSrcID, msg: err.Error()}
|
||||||
}
|
}
|
||||||
|
|
||||||
avID := operation.ParentID
|
avID := operation.ParentID
|
||||||
for _, id := range operation.SrcIDs {
|
for _, id := range operation.SrcIDs {
|
||||||
if err = addAttributeViewBlock(id, avID, tree); nil != err {
|
if err = addAttributeViewBlock(id, avID, tree); nil != err {
|
||||||
return &TxErr{code: TxErrWriteAttributeView, id: avID}
|
return &TxErr{code: TxErrWriteAttributeView, id: avID, msg: err.Error()}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
@ -59,8 +59,6 @@ func (tx *Transaction) doRemoveAttrViewBlock(operation *Operation) (ret *TxErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddAttributeViewColumn(name string, typ string, columnIndex int, avID string) (err error) {
|
func AddAttributeViewColumn(name string, typ string, columnIndex int, avID string) (err error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue