Skip to content

Commit

Permalink
🎨 Improve block update time filling #12182
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 4, 2024
1 parent a070db1 commit a5c02a7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/model/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,12 +1262,7 @@ func createdUpdated(node *ast.Node) {
updated := n.IALAttr("updated")
if "" == updated && ast.IsNodeIDPattern(n.ID) {
created := util.TimeFromID(n.ID)
updated = created
if updated < created {
updated = created
}

n.SetIALAttr("updated", updated)
n.SetIALAttr("updated", created)
}
return ast.WalkContinue
})
Expand Down

0 comments on commit a5c02a7

Please sign in to comment.