fixed order list

This commit is contained in:
Edward Yang 2022-08-18 20:49:58 +08:00
parent 62a6c89696
commit f62863876f
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class OrderRepo
*/ */
public static function getListBuilder(array $filters = []): Builder public static function getListBuilder(array $filters = []): Builder
{ {
$builder = Order::query(); $builder = Order::query()->with(['orderProducts']);
$customer = $filters['customer'] ?? null; $customer = $filters['customer'] ?? null;
if ($customer) { if ($customer) {