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);
|
||||
|
||||
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);
|
||||
|
|
@ -918,4 +918,4 @@ class ProductRepository extends WProductRepository
|
|||
->get();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue