Skip to content

Commit

Permalink
Merge pull request #110 from Journey-Together/feature/#14
Browse files Browse the repository at this point in the history
#14 fix : 회원 탈퇴 시 delete 오류
  • Loading branch information
sycuuui authored Sep 29, 2024
2 parents a19e96e + b18f3d4 commit f32acad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ public void withdrawal(Member member) {
Long id = kakaoClient.unlinkUser(kakaoToken.access_token());
if(id==null){
throw new ApplicationException(ErrorCode.KAKAO_REFRESH_TOKEN_ERROR);
}else if(!id.equals(member.getMemberId())){
throw new ApplicationException(ErrorCode.KAKAO_DELETE_ERROR);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class PlanReview extends BaseTimeEntity {

@OneToOne
@JoinColumn(name = "plan_id")
@OnDelete(action = OnDeleteAction.CASCADE)
private Plan plan;

private Boolean report = false;
Expand Down

0 comments on commit f32acad

Please sign in to comment.