Skip to content

Commit

Permalink
fix: 방문기록 삭제 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
youngreal committed Dec 28, 2024
1 parent b084c33 commit 4649968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ public interface MemberRegionRepository extends JpaRepository<MemberRegion, Long
List<MemberRegion> findByMemberId(Long memberId);

MemberRegion findByMemberIdAndRegionId(Long memberId, Long regionId);

void deleteByMemberId(Long memberId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void deleteRecord(long memberId, long memberAttractionId) {
List<Photo> photos = photoRepository.findByMemberAttractionId(memberAttraction.getId());
photoRepository.deleteAll(photos);
memberAttractionRepository.delete(memberAttraction);
memberRegionRepository.deleteById(memberAttraction.getMember().getId());
memberRegionRepository.deleteByMemberId(memberId);
attractionRepository.deleteById(memberAttraction.getAttraction().getId());
}

Expand Down

0 comments on commit 4649968

Please sign in to comment.