Resolve "Fix nearest hub issue" #1574

Merged
korina.cordero merged 5 commits from 651-fix-nearest-hub-issue into master 2022-03-24 06:35:40 +00:00
Showing only changes of commit 73f0e69b9a - Show all commits

View file

@ -4533,7 +4533,7 @@ class APIController extends Controller implements LoggedController
// check if hub has available slots
$hub_available = true;
error_log('total rider slots ' . $total_rslots);
error_log('total unavailable slots ' . $total_unavailable_slots);
error_log('total unavailable slots ' . $total_unavailable_rslots);
if ($total_rslots == $total_unavailable_rslots)
{
error_log('hub has no available slots');
@ -4541,7 +4541,7 @@ class APIController extends Controller implements LoggedController
}
$hs_data = [
'flag_hub_available' => $hub_unavailable,
'flag_hub_available' => $hub_available,
'slot_data' => $data,
];