Skip to content

Commit

Permalink
Merge pull request #294 from vianneynara/fix/292-recommender-give-una…
Browse files Browse the repository at this point in the history
…valible-product

Fix recommender processing unavalible products
  • Loading branch information
vianneynara authored Dec 18, 2024
2 parents e7c186b + 529aff5 commit 01b244e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public interface ProductRepository extends JpaRepository<Product, Long>, JpaSpec

List<Product> findAllByCategoryIsAndNameLikeIgnoreCase(Product.Category category, String name);

@Query("SELECT p.productId FROM Product p WHERE p.available=TRUE")
@Query("SELECT p.productId FROM Product p WHERE p.available=TRUE AND p.deleted=FALSE")
List<Long> findAllAvailableIds();
}

0 comments on commit 01b244e

Please sign in to comment.