Commit fd7bd7b
committed
Update ProductListController to filter out trashed products and use inRandomOrder for product retrieval
This commit modifies the index, adsProducts, and allProducts methods in the ProductListController to ensure that only non-trashed products are returned. Additionally, it changes the product retrieval order to inRandomOrder, enhancing the randomness of the product listings.1 parent f88df18 commit fd7bd7b
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
0 commit comments