Skip to content

Commit

Permalink
refactor: static 사용 안하기
Browse files Browse the repository at this point in the history
  • Loading branch information
9898s committed Oct 26, 2023
1 parent 5d1bc55 commit aa70b76
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.snsIntegrationFeedService.post.service;

import static com.snsIntegrationFeedService.common.error.CustomErrorCode.POST_ID_NOT_FOUND;

import com.snsIntegrationFeedService.common.error.CustomErrorCode;
import com.snsIntegrationFeedService.common.exception.CustomException;
import com.snsIntegrationFeedService.post.dto.PostDetailResponseDto;
import com.snsIntegrationFeedService.post.entity.Post;
Expand All @@ -23,7 +22,7 @@ public class PostService {
public PostDetailResponseDto getPostDetail(String postId) {
// 예외 처리
Post post = postRepository.findByPostId(postId).orElseThrow(
() -> new CustomException(POST_ID_NOT_FOUND)
() -> new CustomException(CustomErrorCode.POST_ID_NOT_FOUND)
);

// 해시 태그명 가져오기
Expand Down

0 comments on commit aa70b76

Please sign in to comment.