Skip to content

Commit

Permalink
[refactor] 메서드 명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BaeJunho committed Oct 1, 2024
1 parent bf1f83f commit 725d3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public List<VideoInfo> findByInfluencer(List<String> influencers) {
return videoToInfo(savedVideos);
}

public List<VideoInfo> findAllDESC() {
public List<VideoInfo> findAllDesc() {
// id를 기준으로 내림차순 정렬하여 비디오 정보 불러오기
List<Video> savedVideos = videoRepository.findAllByOrderByIdDesc();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import team7.inplace.influencer.domain.Influencer;
import team7.inplace.security.util.JwtUtil;
import team7.inplace.video.application.dto.VideoInfo;
import team7.inplace.video.presentation.dto.VideoResponse;
import team7.inplace.video.application.VideoService;
Expand Down Expand Up @@ -67,7 +65,7 @@ private ResponseEntity<List<VideoResponse>> readBySurround(VideoSearchParams sea
@GetMapping("/new")
@Operation(summary = "새로 등록된 그 곳", description = "id를 기준으로 내림차순 정렬한 Video 정보를 조회합니다.")
public ResponseEntity<List<VideoResponse>> readByNew() {
List<VideoInfo> videoInfos = videoService.findAllDESC();
List<VideoInfo> videoInfos = videoService.findAllDesc();
List<VideoResponse> videoResponses = videoInfos.stream().map(VideoResponse::from).toList();
return new ResponseEntity<>(videoResponses, HttpStatus.OK);
}
Expand Down

0 comments on commit 725d3db

Please sign in to comment.