From 4975376383ff883d93eb3b3ab5eec087ea3b6b2c Mon Sep 17 00:00:00 2001 From: jgmoon <6813821@tukorea.ac.kr> Date: Thu, 15 Feb 2024 16:03:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=ED=95=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/newsletter/like/service/NewsletterLikeService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/api/ttoklip/domain/newsletter/like/service/NewsletterLikeService.java b/src/main/java/com/api/ttoklip/domain/newsletter/like/service/NewsletterLikeService.java index e69b12ed..5e7dd31b 100644 --- a/src/main/java/com/api/ttoklip/domain/newsletter/like/service/NewsletterLikeService.java +++ b/src/main/java/com/api/ttoklip/domain/newsletter/like/service/NewsletterLikeService.java @@ -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);