Skip to content

Commit

Permalink
refactor: TimeBaseEntity의 preUpdate가 항상 새로 갱신되도록 수정한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Mar 10, 2024
1 parent 0e48f7d commit 98b3ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/nalab/api/core/TimeBaseEntity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class TimeBaseEntity {

@PreUpdate
fun preUpdate() {
updatedAt = if (updatedAt != null) updatedAt else Instant.now()
updatedAt = Instant.now()
}
}

0 comments on commit 98b3ac5

Please sign in to comment.