Skip to content

Commit

Permalink
fix: 회원 삭제 로직 memberId 로 동작하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Combi153 committed Mar 27, 2024
1 parent e5984d9 commit 646a954
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/petqua/application/auth/AuthService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AuthService(
authMember.delete()
authMemberRepository.save(authMember)

cartProductRepository.deleteByMemberId(authMember.id)
refreshTokenRepository.deleteByMemberId(authMember.id)
cartProductRepository.deleteByMemberId(member.id)
refreshTokenRepository.deleteByMemberId(member.id)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class AuthFacadeServiceTest(
val deletedMember = memberRepository.findByIdOrThrow(member.id)

assertSoftly(deletedMember) {
it.nickname shouldBe Nickname.emptyNickname()
it.nickname.value shouldBe Nickname.emptyNickname().value
it.profileImageUrl shouldBe null
it.isDeleted shouldBe true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class AuthControllerTest(
val deletedMember = memberRepository.findByIdOrThrow(memberId)

assertSoftly(deletedMember) {
it.nickname shouldBe Nickname.emptyNickname()
it.nickname.value shouldBe Nickname.emptyNickname().value
it.profileImageUrl shouldBe null
it.isDeleted shouldBe true
}
Expand Down

0 comments on commit 646a954

Please sign in to comment.