Draft: Resolve "Update capi calls for warranty" #1565

Closed
jankstudio wants to merge 77 commits from 642-update-capi-calls-for-warranty into master
2 changed files with 3 additions and 13 deletions
Showing only changes of commit 50f5896014 - Show all commits

View file

@ -1090,12 +1090,6 @@ class APIController extends Controller implements LoggedController
// break out of loop // break out of loop
break; break;
} }
else
{
// log hub into hub_filter_log
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
// continue to go through list to find hub with an available rider
}
} }
} }
@ -2634,12 +2628,6 @@ class APIController extends Controller implements LoggedController
// break out of loop // break out of loop
break; break;
} }
else
{
// log hub into hub_filter_log
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
// continue to go through list to find hub with an available rider
}
} }
} }
} }

View file

@ -222,6 +222,8 @@ class HubSelector
$avail_rider_count = $avail_rider_count + 1; $avail_rider_count = $avail_rider_count + 1;
} }
error_log('HUB ' . $hub->getID() . ' RIDER COUNT' . $avail_rider_count);
if ($avail_rider_count > 0) if ($avail_rider_count > 0)
$results[] = [ $results[] = [
'hub' => $hub, 'hub' => $hub,