Skip to content

Commit d803fa3

Browse files
authored
Merge pull request #82 from Decodeat/feat/77-behavior-based-recommendation
.
2 parents 7a642e0 + fdf0b23 commit d803fa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/DecodEat/domain/products/service/ProductService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public List<ProductSearchResponseDto.ProductPrevDto> getProductBasedRecommendati
202202
}
203203

204204
List<Product> productList = response.getRecommendations().stream()
205-
.filter(r -> r.getProductId() != null)
206-
.map(r -> productRepository.findById(r.getProductId())
205+
.filter(r -> r.getProduct_id() != null)
206+
.map(r -> productRepository.findById(r.getProduct_id())
207207
.orElseThrow(() -> new GeneralException(PRODUCT_NOT_EXISTED)))
208208
.toList();
209209

0 commit comments

Comments
 (0)