Skip to content

Commit

Permalink
fix : 인자로 넘긴 user 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yel-m committed Jun 9, 2024
1 parent 92ce6bc commit d1f8ce7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public DataResponseDto<Object> getSummary(@RequestParam(required = false) AgeGro

@Operation(summary = "행복도가 높은 장소와 활동 Top3", description = "전체 유저가 행복했던 장소 Top 3의 이름, 위치, 그 장소에서 가장 행복도가 높았던 활동을 조회합니다.")
@GetMapping("/top-locations")
public DataResponseDto<List<LocationActivityRankingResponseDto>> getTop3HappiestLocations(@AuthenticationPrincipal UserDetails userDetails) {
User user = userFindService.findByUserDetails(userDetails);
List<LocationActivityRankingResponseDto> responseDto = trendLocationRankingService.getTop3HappyLocationsWithActivities(user);
public DataResponseDto<List<LocationActivityRankingResponseDto>> getTop3HappiestLocations() {
List<LocationActivityRankingResponseDto> responseDto = trendLocationRankingService.getTop3HappyLocationsWithActivities();
return DataResponseDto.of(responseDto, "행복도가 높은 장소와 활동 Top3를 성공적으로 조회했습니다.");
}
}

0 comments on commit d1f8ce7

Please sign in to comment.