Skip to content

Commit

Permalink
fix: 테스트한 코드 삭제 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
why-only-english committed Feb 15, 2024
1 parent 0d6f7f5 commit 4975376
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ public void registerLike(final Long newsletterId) {
Long currentMemberId = getCurrentMember().getId();

boolean exists = newsletterLikeRepository.existsByNewsletterIdAndMemberId(newsletterId, currentMemberId);
System.out.println("exists = " + exists);

if (exists) {
return; // 이미 좋아요가 존재하면 스크랩을 생성하지 않고 return
}

System.out.println("newsletterId = " + newsletterId);

Newsletter findNewsletter = newsletterCommonService.getNewsletter(newsletterId);
NewsletterLike newsletterLike = NewsletterLike.from(findNewsletter);
newsletterLikeRepository.save(newsletterLike);
Expand Down

0 comments on commit 4975376

Please sign in to comment.