mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🐛 Database filtering for specific dates not working Fix https://github.com/siyuan-note/siyuan/issues/10518
This commit is contained in:
parent
8b71a91a0c
commit
0d32479a5d
1 changed files with 2 additions and 2 deletions
|
|
@ -2689,6 +2689,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
|||
}
|
||||
}
|
||||
|
||||
now := time.Now().UnixMilli()
|
||||
var val *av.Value
|
||||
oldIsDetached := true
|
||||
if nil != blockVal {
|
||||
|
|
@ -2708,7 +2709,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
|||
}
|
||||
|
||||
if nil == val {
|
||||
val = &av.Value{ID: cellID, KeyID: keyValues.Key.ID, BlockID: rowID, Type: keyValues.Key.Type}
|
||||
val = &av.Value{ID: cellID, KeyID: keyValues.Key.ID, BlockID: rowID, Type: keyValues.Key.Type, CreatedAt: now, UpdatedAt: now}
|
||||
keyValues.Values = append(keyValues.Values, val)
|
||||
}
|
||||
break
|
||||
|
|
@ -2786,7 +2787,6 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
|||
}
|
||||
}
|
||||
|
||||
now := time.Now().UnixMilli()
|
||||
if nil != blockVal {
|
||||
blockVal.Block.Updated = now
|
||||
blockVal.UpdatedAt = now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue