server push fix related products
This commit is contained in:
parent
e1f65b0614
commit
739975feae
|
|
@ -67,7 +67,7 @@ class ProductRepository extends WProductRepository
|
||||||
$product = $this->find($product);
|
$product = $this->find($product);
|
||||||
|
|
||||||
if (count($product->categories)) {
|
if (count($product->categories)) {
|
||||||
$qb->where('product_categories.category_id', $product->categories->first->id);
|
$qb->where('product_categories.category_id', $product->categories->first()->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $qb->paginate($limit);
|
return $qb->paginate($limit);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue