Commit 421a2ec
committed
Fix duplicate items when Fastest Delivery sort chosen
Fixes #35 - Products were appearing multiple times when sorted by
Fastest Delivery due to JOIN with ProductDeliveryLink creating
duplicate rows for products with multiple delivery options.
Added .distinct() to all delivery_fastest sorting queries to ensure
each product appears only once in the results.1 parent ce1b798 commit 421a2ec
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
0 commit comments