We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a642e0 + fdf0b23 commit d803fa3Copy full SHA for d803fa3
src/main/java/com/DecodEat/domain/products/service/ProductService.java
@@ -202,8 +202,8 @@ public List<ProductSearchResponseDto.ProductPrevDto> getProductBasedRecommendati
202
}
203
204
List<Product> productList = response.getRecommendations().stream()
205
- .filter(r -> r.getProductId() != null)
206
- .map(r -> productRepository.findById(r.getProductId())
+ .filter(r -> r.getProduct_id() != null)
+ .map(r -> productRepository.findById(r.getProduct_id())
207
.orElseThrow(() -> new GeneralException(PRODUCT_NOT_EXISTED)))
208
.toList();
209
0 commit comments