Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

탈퇴한 유저의 이메일은 다시 사용할 수 있게 하기 #351

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class User(
var nickname: String,
@Deprecated("닉네임 로그인은 사라질 예정") var encryptedPassword: String?,
var instagramId: String?,
var email: String?, // FIXME: 레거시 계정이 모두 사라지면 non-nullable로 변경
var email: String?,
@Column(columnDefinition = "TEXT")
@Convert(converter = UserMobilityToolListToTextAttributeConverter::class)
val mobilityTools: MutableList<UserMobilityTool>,
Expand All @@ -29,6 +29,7 @@ class User(
get() = deletedAt != null

fun delete(deletedAt: Instant) {
this.email = null
this.deletedAt = deletedAt
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class DeleteUserTest : UserITBase() {
transactionManager.doInTransaction {
val deletedUser = userRepository.findById(user.id).get()
assertTrue(deletedUser.isDeleted)
assertNull(deletedUser.email)
}
}

Expand Down
Loading