From ae081dc8a348031a03f150646c77e3d7b9030d9a Mon Sep 17 00:00:00 2001 From: gahyuun Date: Mon, 20 Jan 2025 17:51:19 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EC=9E=A5=EC=86=8C=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=97=AC=EB=B6=80=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../acon/server/member/application/service/MemberService.java | 2 +- .../com/acon/server/spot/application/service/SpotService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/acon/server/member/application/service/MemberService.java b/src/main/java/com/acon/server/member/application/service/MemberService.java index 04091f0..7937bb1 100644 --- a/src/main/java/com/acon/server/member/application/service/MemberService.java +++ b/src/main/java/com/acon/server/member/application/service/MemberService.java @@ -16,7 +16,7 @@ public class MemberService { private final SpotRepository spotRepository; public void createGuidedSpot(final Long spotId, final Long memberId) { - if (spotRepository.existsById(spotId)) { + if (!spotRepository.existsById(spotId)) { throw new BusinessException(ErrorType.NOT_FOUND_SPOT_ERROR); } diff --git a/src/main/java/com/acon/server/spot/application/service/SpotService.java b/src/main/java/com/acon/server/spot/application/service/SpotService.java index 597efe3..42f5c72 100644 --- a/src/main/java/com/acon/server/spot/application/service/SpotService.java +++ b/src/main/java/com/acon/server/spot/application/service/SpotService.java @@ -19,7 +19,7 @@ public class SpotService { private final MenuRepository menuRepository; public MenuListResponse fetchMenus(Long spotId) { - if (spotRepository.existsById(spotId)) { + if (!spotRepository.existsById(spotId)) { throw new BusinessException(ErrorType.NOT_FOUND_SPOT_ERROR); } List menuEntityList = menuRepository.findAllBySpotId(spotId);