From 926352902f04f10d5cb8d72d5eafd501095fa1f7 Mon Sep 17 00:00:00 2001 From: BK Date: Tue, 14 Nov 2023 00:00:10 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20record=20=EB=93=B1=EB=A1=9D=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20-=20id=20=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/igoMoney/BE/service/RecordService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/igoMoney/BE/service/RecordService.java b/src/main/java/igoMoney/BE/service/RecordService.java index 8471c66..19dff11 100644 --- a/src/main/java/igoMoney/BE/service/RecordService.java +++ b/src/main/java/igoMoney/BE/service/RecordService.java @@ -43,7 +43,7 @@ public class RecordService { public Long saveRecord (RecordSaveRequest request) throws IOException { User findUser = getUserOrThrow(request.getUserId()); - Challenge challenge = getChallengeOrThrow(request.getUserId()); + Challenge challenge = getChallengeOrThrow(request.getChallengeId()); checkPermission(findUser, request.getChallengeId()); checkExistsImage(request.getImage());