🎨 Supports searching database view content https://github.com/siyuan-note/siyuan/issues/9419

This commit is contained in:
Daniel 2023-10-13 23:22:17 +08:00
parent 22efb3d523
commit 8399aba10b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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