Skip to content

Commit

Permalink
change a repo method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroFairy committed Dec 18, 2024
1 parent e9350f3 commit 60f97cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private List<ProductDto> oldRecommender(Long productId, Boolean addRandom) {
private Long addOneRandom(Long productId, Set<Long> excludeSet) {
excludeSet.add(productId);

List<Long> allProductIds = productRepository.findAllIds();
List<Long> allProductIds = productRepository.findAllAvailableIds();
List<Long> filteredProductIds = allProductIds.stream()
.filter(id -> !excludeSet.contains(id))
.collect(Collectors.toList());
Expand Down

0 comments on commit 60f97cb

Please sign in to comment.