🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492

This commit is contained in:
Daniel 2024-03-03 16:39:34 +08:00
parent 2d636992d5
commit e487897b54
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -2594,12 +2594,15 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
}
}
now := time.Now().UnixMilli()
if nil != blockVal {
blockVal.Block.Updated = time.Now().UnixMilli()
blockVal.Block.Updated = now
blockVal.UpdatedAt = now
if isUpdatingBlockKey {
blockVal.IsDetached = val.IsDetached
}
}
val.UpdatedAt = now
key, _ := attrView.GetKey(val.KeyID)
if nil != key && av.KeyTypeRelation == key.Type && nil != key.Relation {