Skip to content

Commit 70beb7d

Browse files
committed
fix: 스토리 예외 적용
1 parent d3b7bb9 commit 70beb7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eatda/repository/story/StoryRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public interface StoryRepository extends Repository<Story, Long> {
1414

1515
default Story getById(Long id) {
1616
return findById(id)
17-
.orElseThrow(() -> new BusinessException(BusinessErrorCode.INVALID_STORE_ID));
17+
.orElseThrow(() -> new BusinessException(BusinessErrorCode.STORY_NOT_FOUND));
1818
}
1919
}

0 commit comments

Comments
 (0)