fix: Fix timeslot db request
This commit is contained in:
parent
b5c79ca5c1
commit
f8537635bc
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ class OrderTunnelController extends Controller
|
|||
do {
|
||||
$creneau = $currentTime->format('H:i');
|
||||
$nbtakens = $magasin->timeslots()
|
||||
->where('day', $current->format('d/m/Y'))
|
||||
->where('day', $current->format('Y-m-d'))
|
||||
->where('time', $creneau)->count();
|
||||
|
||||
if ($nbtakens >= $plage[$weekDay]['max_orders_per_interval']) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue