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);