🎨 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:58:37 +08:00
parent e487897b54
commit ce58bccd63
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 26 additions and 5 deletions

View file

@ -91,10 +91,11 @@ func (value *Value) Compare(other *Value) int {
}
if !value.IsEdited() {
return 1
}
if !other.IsEdited() {
if other.IsEdited() {
return 1
}
return int(value.CreatedAt - other.CreatedAt)
} else if !other.IsEdited() {
return -1
}