Skip to content

Commit

Permalink
🎨 Supports searching database view content siyuan-note#9419
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 13, 2023
1 parent 22efb3d commit 8399aba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/model/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8399aba

Please sign in to comment.