mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00: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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user