fix: Fix timeslot db request

This commit is contained in:
Vincent BRIDIER 2026-05-04 12:19:44 +02:00
parent b5c79ca5c1
commit f8537635bc

View file

@ -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']) {