Skip to content

Commit

Permalink
hotfix: 장소 존재 여부 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Jan 20, 2025
1 parent 918a105 commit ae081dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MenuEntity> menuEntityList = menuRepository.findAllBySpotId(spotId);
Expand Down

0 comments on commit ae081dc

Please sign in to comment.