Merge branch 'vb-fix-timeslots' into 'master'
fix: Fix timeslot db request See merge request ldc-web/projets/boutique-cnc-sable!85
This commit is contained in:
commit
772cd92f85
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