mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-01 05:01:47 +01:00
🎨 Sort tx queue Undo and then redo after Shift+Enter trigger status exception https://github.com/siyuan-note/siyuan/issues/9178
This commit is contained in:
parent
6ffa2425d2
commit
f77f82258e
2 changed files with 9 additions and 0 deletions
|
|
@ -53,12 +53,16 @@ func performTransactions(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
timestamp := int64(arg["reqId"].(float64))
|
||||
var transactions []*model.Transaction
|
||||
if err = gulu.JSON.UnmarshalJSON(data, &transactions); nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = "parses request failed"
|
||||
return
|
||||
}
|
||||
for _, transaction := range transactions {
|
||||
transaction.Timestamp = timestamp
|
||||
}
|
||||
|
||||
model.PerformTransactions(&transactions)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue