Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-10-13 23:26:15 +08:00
commit 49305b8911

View file

@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
@ -1009,8 +1008,7 @@ func (tx *Transaction) doUpdateUpdated(operation *Operation) (ret *TxErr) {
return &TxErr{msg: ErrBlockNotFound.Error(), id: id}
}
updated := int64(operation.Data.(float64))
node.SetIALAttr("updated", strconv.FormatInt(updated, 10))
node.SetIALAttr("updated", operation.Data.(string))
createdUpdated(node)
tx.nodes[node.ID] = node
if err = tx.writeTree(tree); nil != err {