Skip to content

Commit

Permalink
Brain-up#2406 set lastVisit null by default; do not assume that las…
Browse files Browse the repository at this point in the history
…t visit time was right now
  • Loading branch information
naXa777 committed Oct 19, 2023
1 parent 1804986 commit 4e061bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/com/epam/brn/model/UserAccount.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ data class UserAccount(
@LastModifiedBy
@Column(name = "changed_by")
var changedBy: String = "",
@Column(name = "last_visit")
var lastVisit: LocalDateTime? = null,
var avatar: String? = null,
var photo: String? = null,
var description: String? = null,
Expand All @@ -53,7 +55,6 @@ data class UserAccount(
@OneToMany(mappedBy = "userAccount", cascade = [CascadeType.ALL], fetch = FetchType.LAZY)
var headphones: MutableSet<Headphones> = hashSetOf()
) {
var lastVisit: LocalDateTime = LocalDateTime.now(ZoneOffset.UTC)
var password: String? = null

@Column(name = "is_firebase_error")
Expand Down

0 comments on commit 4e061bd

Please sign in to comment.