fix(order): ensure validated status for orders with lines and shop
This change adds a condition to filter orders by validated status when retrieving orders with lines and shop for a specific pickup day.
This commit is contained in:
parent
8c484ae053
commit
341a66a2d1
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ class EloquentOrderRepository implements OrderRepository
|
|||
return Order::query()
|
||||
->with(['lines', 'shop'])
|
||||
->whereDate('pickup_day', $pickupDay->format('Y-m-d'))
|
||||
->where('status', OrderStatus::VALIDATED)
|
||||
->get()
|
||||
->all();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue