From 9353524a8950d21580d57ff109648906d8a4aa2c Mon Sep 17 00:00:00 2001 From: SoohoLee Date: Tue, 13 Aug 2024 22:45:15 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9D=B8=EC=A6=9D=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=B6=94=EA=B0=80=20(#noisssue)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dduckddak/domain/member/service/ScrapService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dduckddak/domain/member/service/ScrapService.java b/src/main/java/com/dduckddak/domain/member/service/ScrapService.java index c2d6809..5db0485 100644 --- a/src/main/java/com/dduckddak/domain/member/service/ScrapService.java +++ b/src/main/java/com/dduckddak/domain/member/service/ScrapService.java @@ -24,7 +24,7 @@ public class ScrapService { @Transactional public void saveScrap(ScrapRequest scrapRequest) { - Member member = memberRepository.findByEmail(scrapRequest.getEmail()) + Member member = memberRepository.findById(1L) .orElseThrow(() -> new RuntimeException("해당 사용자가 존재하지 않습니다.")); Scrap scrap = new Scrap(scrapRequest, member);