Skip to content

Commit

Permalink
fix: 랜덤 핀 추천 기능 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
githublees committed Aug 7, 2024
1 parent 57ffd6b commit cfa2841
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@RequiredArgsConstructor
public class BaseController {

@GetMapping("/health-check")
@GetMapping("/chat/health-check")
public String healthCheck() {
return "OK";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ public RecommendDTO recommendRandomForGuest(double mapX, double mapY, String add

List<LocationResponse> locations = recommendList.stream()
.map(location -> {
Image image = imageRepository.findTopImageByReviewLike(location.getLocationId())
.orElse(null);
return LocationResponse.guest(image.getImageUrl(), location);
String imageUrl = imageRepository.findTopImageByReviewLike(location.getLocationId())
.map(Image::getImageUrl).orElse("");
return LocationResponse.guest(imageUrl, location);
})
.collect(Collectors.toList());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@RequiredArgsConstructor
public class BaseController {

@GetMapping("/health-check")
@GetMapping("/notification/health-check")
public String healthCheck() {
return "OK";
}
Expand Down

0 comments on commit cfa2841

Please sign in to comment.