diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index 9b5fd28c..a0841841 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -994,7 +994,8 @@ class APIController extends Controller implements LoggedController ($jo->getServicetype() == ServiceType::BATTERY_REPLACEMENT_WARRANTY)) { // get nearest hub - $nearest_hub = $this->findNearestHubWithInventory($jo, $batt, $em, $map_tools, $im); + // $nearest_hub = $this->findNearestHubWithInventory($jo, $batt, $em, $map_tools, $im); + $nearest_hub = $this->findNearestHub($jo, $em, $map_tools); } else {