Skip to content

Commit

Permalink
Merge pull request #83 from Team-B1ND/Refactor/#76
Browse files Browse the repository at this point in the history
fix: melon chart
  • Loading branch information
suw0n committed Jun 12, 2024
2 parents 1fad289 + 3e4b0a9 commit 54a12d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Response deleteMyWakeupSong(@PathVariable int id) {
}

@GetMapping("/chart")
public ResponseData<CompletableFuture<List<ChartRes>>> getChart() {
public CompletableFuture<ResponseData<List<ChartRes>>> getChart() {
return wakeupSongUseCase.getChartList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ public Response deleteMyWakeupSong(int id) {
return Response.ok("기상송 신청 취소 성공");
}

public ResponseData<CompletableFuture<List<ChartRes>>> getChartList() {
return ResponseData.ok("차트 조회 성공", chartClient.getList());
public CompletableFuture<ResponseData<List<ChartRes>>> getChartList() {
return chartClient.getList().thenApply(res -> ResponseData.ok("차트 조회 성공", res));
}

public ResponseData<List<YoutubeRes>> getYoutubeList(String keyword) {
Expand Down

0 comments on commit 54a12d4

Please sign in to comment.