mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 05:18:49 +01:00
This commit is contained in:
parent
8f566f251c
commit
de0b64f8ca
2 changed files with 15 additions and 1 deletions
|
|
@ -1312,10 +1312,15 @@ func (tx *Transaction) commit() (err error) {
|
|||
if err = writeJSONQueue(tree); nil != err {
|
||||
return
|
||||
}
|
||||
|
||||
var sources []interface{}
|
||||
for _, op := range tx.DoOperations {
|
||||
sources = append(sources, op.Action)
|
||||
}
|
||||
util.PushSaveDoc(tree.ID, "tx", sources)
|
||||
}
|
||||
refreshDynamicRefTexts(tx.nodes, tx.trees)
|
||||
IncSync()
|
||||
tx.trees = nil
|
||||
tx.state.Store(2)
|
||||
tx.m.Unlock()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue