We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3b7bb9 commit 70beb7dCopy full SHA for 70beb7d
src/main/java/eatda/repository/story/StoryRepository.java
@@ -14,6 +14,6 @@ public interface StoryRepository extends Repository<Story, Long> {
14
15
default Story getById(Long id) {
16
return findById(id)
17
- .orElseThrow(() -> new BusinessException(BusinessErrorCode.INVALID_STORE_ID));
+ .orElseThrow(() -> new BusinessException(BusinessErrorCode.STORY_NOT_FOUND));
18
}
19
0 commit comments